October 2018
Intermediate to advanced
472 pages
10h 57m
English
For this implementation, we need a TensorFlow version greater than or equal to 1.9 and we will also enable the eager execution (https://www.tensorflow.org/guide/eager) mode, which will help us use the debug the code more effectively. Here is the code for this:
# Import TensorFlow and enable eager executionimport tensorflow as tftf.enable_eager_execution()import matplotlib.pyplot as pltfrom sklearn.model_selection import train_test_splitfrom sklearn.utils import shuffleimport reimport numpy as npimport osimport timeimport jsonfrom glob import globfrom PIL import Imageimport pickle
Read now
Unlock full access