October 2018
Intermediate to advanced
472 pages
10h 57m
English
We will be using numpy, matplotlib, keras, tensorflow, and the tqdm package in this exercise. Here, TensorFlow is used as the backend for Keras. You can install these packages with pip. For the MNIST data, we will be using the dataset available in the keras module with a simple import:
import numpy as npimport randomimport matplotlib.pyplot as plt%matplotlib inlinefrom tqdm import tqdmfrom keras.layers import Input, Conv2Dfrom keras.layers import AveragePooling2D, BatchNormalizationfrom keras.layers import UpSampling2D, Flatten, Activationfrom keras.models import Model, Sequentialfrom keras.layers.core import Dense, Dropoutfrom keras.layers.advanced_activations import LeakyReLUfrom keras.optimizers import ...
Read now
Unlock full access