- 非正規形
- 第1~第5正規形
- ボイスコッド正規形
用語
| import tensorflow as tf | |
| from tensorflow.keras.applications import InceptionV3, VGG16, MobileNet | |
| from tensorflow.keras.layers import GlobalAveragePooling2D, Dense | |
| from tensorflow.keras.models import Model | |
| from tensorflow.keras.callbacks import History, Callback | |
| import tensorflow.keras.backend as K | |
| from tensorflow.contrib.tpu.python.tpu import keras_support | |
| from keras.utils import to_categorical | |
| from keras.datasets import cifar10 |
| image: an-image-with-docker-and-docker-compose | |
| variables: | |
| DOCKER_TLS_VERIFY: "1" | |
| DOCKER_CERT_PATH: ".docker" | |
| before_script: | |
| - mkdir -p $DOCKER_CERT_PATH | |
| - echo "$DOCKER_CA" > $DOCKER_CERT_PATH/ca.pem | |
| - echo "$DOCKER_CERT" > $DOCKER_CERT_PATH/cert.pem |
| # Import the SDK | |
| import boto3 | |
| import datetime | |
| import os | |
| rds = boto3.client('rds', region_name='us-east-1') | |
| db_instance_identifier = "mysql-db" | |
| log_base_path = "./log/" |
| import boto3 | |
| import argparse | |
| import string | |
| parser = argparse.ArgumentParser('Change storage class of s3 objects') | |
| parser.add_argument('--bucket', dest='myBucket', default='yourBucketName', help='S3 Bucket to search') | |
| parser.add_argument('--from', dest='fromPath', default='', help='s3 path to start search from') | |
| cliArgs = parser.parse_args() |
| import boto3 | |
| class tableCreate(object): | |
| def __init__(self, **kwargs): | |
| self.__dict__.update(kwargs) | |
| # Query client and list_tables to see if table exists or not | |
| def queryCreate(self): | |
| # Instantiate your dynamo client object | |
| client = boto3.client('dynamodb') |
| """ | |
| The MIT License (MIT) | |
| Copyright (c) 2018 Takehiro Araki. | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |
| import math | |
| import numpy as np | |
| batchsize = 2 | |
| r = 2 | |
| out_channels = 3 | |
| in_channels = r ** 2 * out_channels | |
| in_height = 3 | |
| in_width = 3 | |
| out_height = in_height * r |
| """ | |
| Parse output of nvidia-smi into a python dictionary. | |
| This is very basic! | |
| """ | |
| import subprocess | |
| import pprint | |
| sp = subprocess.Popen(['nvidia-smi', '-q'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) |