December 2018
Intermediate to advanced
268 pages
8h 23m
English
The imports are a key piece:
#!/usr/bin/env python3import sysimport numpy as npfrom keras.layers import Dense, Reshapefrom keras.layers import BatchNormalizationfrom keras.layers.advanced_activations import LeakyReLUfrom keras.models import Sequential, Modelfrom keras.optimizers import Adam
As in previous classes, you will need the availability of sys and numpy. The basic layer types are imported for use in the model, along with the LeakyReLU activation layer. The Adam optimizer is used here, but a exercise problem is to expand each class to have a different optimizer available.
Read now
Unlock full access