May 2018
Beginner
490 pages
13h 16m
English
The model used is a Keras sequential() model; it requires adding one layer at a time in a certain order with TensorFlow as the backend:
import matplotlib.pyplot as pltimport matplotlib.image as mpimgimport numpy as npfrom keras.layers import Convolution2D, MaxPooling2D, Activationfrom keras.models import Sequentialfrom keras.layers import Flattenfrom keras.layers import Densefrom PIL import Imagefrom keras.preprocessing.image import ImageDataGeneratormodel = Sequential()
The import libraries will be used for each layer of the model. The model can now be built.
Read now
Unlock full access