Skip to Main Content
Apache Spark Deep Learning Cookbook
book

Apache Spark Deep Learning Cookbook

by Ahmed Sherif, Amrith Ravindra, Michal Malohlava, Adnan Masood
July 2018
Intermediate to advanced content levelIntermediate to advanced
474 pages
13h 37m
English
Packt Publishing
Content preview from Apache Spark Deep Learning Cookbook

How to do it...

The steps are as follows:

  1. Download the necessary libraries using the following lines of code. The output must result in a line that says Using TensorFlow backend, as shown in the screenshot that follows:
%matplotlib inlinefrom os import listdirfrom os.path import isfile, joinimport matplotlib.pyplot as pltimport matplotlib.image as mpimgimport numpy as npfrom keras.models import Sequentialfrom keras.layers import Dense, Dropout, Activation, Flatten, Conv2Dfrom keras.optimizers import Adamfrom keras.layers.normalization import BatchNormalizationfrom keras.utils import np_utilsfrom keras.layers import MaxPooling2Dfrom keras.preprocessing.image import ImageDataGenerator

The importing of the libraries is as shown:

  1. Print and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Apache Spark for Data Science Cookbook

Apache Spark for Data Science Cookbook

Padma Priya Chitturi
Learning Apache Spark 2

Learning Apache Spark 2

Muhammad Asif Abbasi

Publisher Resources

ISBN: 9781788474221Supplemental Content