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 it works...

The functionality is as follows:

  1. The crop() function executes the following tasks:
    1. Multiplies all pixels with an intensity of 28 with a numpy array of 1s and stores in variable a.
    2. Checks for all instances where an entire column consists of only pixel intensities of 28 and stores in variable b.
    3. Deletes all columns (or Y axes) where pixel intensities are 28 for the entire column.
    4. Plots the resulting image. 
    1. Transposes the image in order to perform the preceding set of operations on all the rows (or X axes) in a similar manner.
    1. Multiplies all pixels with an intensity of 28 with a numpy array of 1s and stores in variable d.
    2. Checks for all instances where an entire column consists of only pixel intensities of 28 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