Book Image

Hands-On Deep Learning with Apache Spark

By : Guglielmo Iozzia
Book Image

Hands-On Deep Learning with Apache Spark

By: Guglielmo Iozzia

Overview of this book

Deep learning is a subset of machine learning where datasets with several layers of complexity can be processed. Hands-On Deep Learning with Apache Spark addresses the sheer complexity of technical and analytical parts and the speed at which deep learning solutions can be implemented on Apache Spark. The book starts with the fundamentals of Apache Spark and deep learning. You will set up Spark for deep learning, learn principles of distributed modeling, and understand different types of neural nets. You will then implement deep learning models, such as convolutional neural networks (CNNs), recurrent neural networks (RNNs), and long short-term memory (LSTM) on Spark. As you progress through the book, you will gain hands-on experience of what it takes to understand the complex datasets you are dealing with. During the course of this book, you will use popular deep learning frameworks, such as TensorFlow, Deeplearning4j, and Keras to train your distributed models. By the end of this book, you'll have gained experience with the implementation of your models on a variety of use cases.
Table of Contents (19 chapters)
Appendix A: Functional Programming in Scala
Appendix B: Image Data Preparation for Spark

Convolutional layers

Since the CNN section was covered in Chapter 2, Deep Learning Basics, you should know in which context CNNs are commonly used. In that section, we have mentioned that each layer of the same CNN can have a different implementation. The first three sections of this chapter describe possible layer implementations in detail, starting from the convolutional layers. But first, let's recap the process by which CNN perceive images. They perceive images as volumes (3D objects) and not as bi-dimensional canvases (having width and height only). The reason is the following: digital color images have a Red-Blue-Green (RGB) encoding and it is the mixing of these colors that produces the spectrum that can be perceived by human eyes. This also means that CNNs ingest images as three separate layers of color, one on top of the other. This translates into receiving a color...