CS256
Chris Pollett
Oct 20, 2021
for i in range(1, len(training_data)): j = random.randint(i+1, len(training_data)) swap(i, j, training_data)
for k in range(0, len(training_data), mini_batch_size)]: current_batch = training_data[k:k+mini_batch_size] # ... now use the mini-batch for training
pip install tensorflow
import tensorflow as tfat the start of your program.
2021-10-20 12:12:19.334445: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
import os os.environ['TF_CPP_MIN_LOG_LEVEL']='2'to the start of your code.