A total of 1 PII found in cell number 3 with the following tag(s):
{
"PERSON": 1
}
Location: cell input
Cell #3
#load dependencies and initialisations
from tensorflow import keras
from tensorflow.keras.datasets import cifar10
import matplotlib.pyplot as plt
import warnings
import numpy as np
import tensorflow as tf
from sklearn.model_selection import train_test_split
warnings.filterwarnings('ignore')
gpus = tf.config.list_physical_devices('GPU')
# prevent memory error messages in GPU environments by setting memory growth equal to all GPUs
if gpus:
try:
# Currently, memory growth needs to be the same across GPUs
for [PII] in [PII]s:
tf.config.experimental.set_memory_growth(gpu, True)
logical_gpus = tf.config.list_logical_devices('GPU')
print(len(gpus), "Physical GPUs,", len(logical_gpus), "Logical GPUs")
except RuntimeError as e:
# Memory growth must be set before GPUs have been initialized
print(e)
model_filename = 'simple-cifar10.h5'
A total of 1 PII found in cell number 22 with the following tag(s):
{
"PERSON": 1
}
Location: cell input
Cell #22
### set the optimisation and loss function suitable to the job, metrics to use during training, and compile the model
model.compile(optimizer='[PII]', loss=keras.losses.categorical_crossentropy, metrics=['accuracy'])
A total of 1 PII found in cell number 3 with the following tag(s):
{
"PERSON": 1
}
Location: cell input
Cell #3
#load dependencies and initialisations
from tensorflow import keras
from tensorflow.keras.datasets import cifar10
import matplotlib.pyplot as plt
import warnings
import numpy as np
import tensorflow as tf
from sklearn.model_selection import train_test_split
warnings.filterwarnings('ignore')
gpus = tf.config.list_physical_devices('GPU')
# prevent memory error messages in GPU environments by setting memory growth equal to all GPUs
if gpus:
try:
# Currently, memory growth needs to be the same across GPUs
for [PII] in [PII]s:
tf.config.experimental.set_memory_growth(gpu, True)
logical_gpus = tf.config.list_logical_devices('GPU')
print(len(gpus), "Physical GPUs,", len(logical_gpus), "Logical GPUs")
except RuntimeError as e:
# Memory growth must be set before GPUs have been initialized
print(e)
model_filename = 'simple-cifar10.h5'
A total of 1 PII found in cell number 22 with the following tag(s):
{
"PERSON": 1
}
Location: cell input
Cell #22
### set the optimisation and loss function suitable to the job, metrics to use during training, and compile the model
model.compile(optimizer='[PII]', loss=keras.losses.categorical_crossentropy, metrics=['accuracy'])