abdw17-lightning talks track-deep learning with apache apex

17
1 Integration of Deeplearning4j with Apache Apex Priyanka Gugale

Upload: datatorrent

Post on 12-Apr-2017

31 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: ABDW17-Lightning Talks track-Deep Learning with Apache Apex

1

Integration of Deeplearning4j with

Apache Apex

Priyanka Gugale

Page 2: ABDW17-Lightning Talks track-Deep Learning with Apache Apex

2

Contributors

Ambarish Pande

Priyanka Kekane Devraj Baheti

Priya Heda

Page 3: ABDW17-Lightning Talks track-Deep Learning with Apache Apex

3

•What is Deep Learning?•Deeplearning4j•Using deeplearning4j with Apex•Architecture•Demo screenshots•Challenges

Agenda

Page 4: ABDW17-Lightning Talks track-Deep Learning with Apache Apex

4

•Deep learning is a branch of machine learning based on a set of algorithms that attempt to model high level abstractions in data.•Deep learning eliminates the need for feature engineering.•Effectively works on unsupervised data.

Deep Learning

Page 5: ABDW17-Lightning Talks track-Deep Learning with Apache Apex

5

• Deep learning uses deep neural networks to model the high level abstractions in data.

• Deep neural networks are neural networks with more than one hidden layer.

Deep Learning

Page 6: ABDW17-Lightning Talks track-Deep Learning with Apache Apex

6

• Colorization of black and white images•Object Classification in Photographs•Automatic Game playing•Image Caption Generation•Handwriting Recognition•Automatic Machine Translation•Adding sound to silent movies

Applications of Deep Learning

Page 7: ABDW17-Lightning Talks track-Deep Learning with Apache Apex

7

•An Open Source Deep Learning library( released under Apache 2.0 license)

•DL4J is Distributed

•Written for Java and Scala

•Integrated with Hadoop

•Skymind is its commercial support arm

•The Neural Net platform Dl4j provides various neural networks like Long Short-Term Memory units, Convolutional Neural Networks for image processing, Deep AutoEncoder, Restricted Boltzmann Machine, Recurrent Nets, Denoising Autoencoders etc.

Deeplearning4j

Page 8: ABDW17-Lightning Talks track-Deep Learning with Apache Apex

8

Deeplearning4j

Page 9: ABDW17-Lightning Talks track-Deep Learning with Apache Apex

9

• Training Deep Learning models on single processor is extremely slow.

• Dl4j works with multi CPU and multi GPU systems.

• This integration will enhance the implementation of deep learning models in distributed and stream processing environments.

Using deeplearning4j with Apex

Page 10: ABDW17-Lightning Talks track-Deep Learning with Apache Apex

10

•We achieve distributed training of neural networks using Data Parallelism.

•In data parallelism, different machines have a complete copy of the model, each machine simply gets a different portion of data.

Architecture

Page 11: ABDW17-Lightning Talks track-Deep Learning with Apache Apex

11

●We use a method called Parameter Averaging to combine and synchronize models trained on different machines.

Architecture

Page 12: ABDW17-Lightning Talks track-Deep Learning with Apache Apex

12

Apex Application DAG

Page 13: ABDW17-Lightning Talks track-Deep Learning with Apache Apex

13

• The Iris flower data set or Fisher's Iris data set is a multivariate data set.

• The data set consists of 150 samples from each of three species of Iris (Iris setosa, Iris virginica and Iris versicolor). Four features were measured from each sample: the length and the width of the sepals and petals, in centimetres.

Demo Dataset

Iris versicolor Iris setosa Iris virginica

Page 14: ABDW17-Lightning Talks track-Deep Learning with Apache Apex

14

DEMO

Page 15: ABDW17-Lightning Talks track-Deep Learning with Apache Apex

15

Page 16: ABDW17-Lightning Talks track-Deep Learning with Apache Apex

16

• Had to change default packaging of Apex Application• We used Maven Shade plugin for packaging the app.

•Certain components of Nd4j are incompatible with KryoSerializer.• We are using Java Serializer for those components.

Challenges

Page 17: ABDW17-Lightning Talks track-Deep Learning with Apache Apex

17

Thank You!