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 that's available in the keras module with a simple import:
import matplotlib.pyplot as plt%matplotlib inlineimport osimport randomimport globimport h5pyfrom scipy.io import loadmatimport numpy as npimport pandas as pdimport cv2 as cvfrom __future__ import print_functionfrom sklearn.model_selection import train_test_splitfrom keras.models import Sequential, Modelfrom keras.layers.core import Flatten, Dense, Dropoutfrom keras.optimizers import Adamfrom keras import backend as Kfrom keras ...
Read now
Unlock full access