SlideShare une entreprise Scribd logo
1  sur  34
Télécharger pour lire hors ligne
Deep Learning - Concepts & Frameworks
Peter Morgan – Data Science Partnership
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 1
Contents
• Deep Learning Concepts ………….3
• Deep Learning Frameworks …..26
• Specific Frameworks ………..……30
• Comparison …………………………..33
• Questions ………………………………34
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 2
Overview - Concepts not Code
No Maths No Code
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 3
Frameworks - The Big Picture
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 4
AI Frameworks
Cognitive
Architectures
ML Frameworks
Supervised,
Unsupervised &
Reinforcement
Deep Learning
Frameworks
Neural Nets
What is Deep learning?
• Deep learning refers to algorithms based on artificial neural networks (ANNs),
which in turn are based on biological neural networks (BNN), such as the human
brain.
• In practice it consists of mulitple layers, nodes, weights and optimisation
algorithms
• Due to more labeled data, more compute power, better optimization algorithms,
and better neural net models and architectures, deep learning has started to
supersede humans when it comes to image recognition and classification.
• Work is being done to obtain similar levels of performance in natural language
processing and understanding.
• Deep learning applies to supervised, unsupervised and reinforcement learning.
• According to Jeff Dean in a recent interview, Google have implemented DL in
over one hundred of their products and services including search and photos.
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 5
Deep Learning Evolution
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 6
Deep Learning Concepts
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 7
Data Sets
• Raw data input into the neural network can originate from any environmental source.
• It can be recorded and stored in a database (e.g., text, images, audio, video) or live
(incident directly from the environment), so called streaming data.
• Examples of recorded data sets include the MNIST and Labeled Faces in the Wild
(LFW).
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 8
MNIST LFW
Multilayer Perceptron (MLP)
• A MLP is a feedforward artificial neural network model that maps sets of input data onto a set of
appropriate outputs (Rosenblatt, 1958).
• An MLP consists of multiple layers of nodes with each layer fully connected to the next one.
• Except for the input nodes, each node is a neuron (or processing element) with a nonlinear
activation function.
• MLP utilizes a supervised learning technique called backpropagation for training the network.
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 9
Layers and Nodes
• Layers
• A neural network is made up of layers of nodes.
• There is an input (visible) layer, an output (classification) layer, and several hidden layers.
• A typical NN may have between 10 and 30 layers, but sometimes many more.
• Every layer of a deep learning network requires four elements: the input (vector), the weights
(matrix), a bias and the transform (activation function).
• Nodes
• Nodes in a neural network represent the places where calculations are done.
• At each node, the input values xi are multiplied by a weight wi, summed, added to a bias b, and
fed into an activation function.
• A decision is then made whether to transmit the resultant value depending on if it exceeds a
certain threshold value or not.
• For example, images from the MNIST data set have 784 pixels, so neural nets processing them
must have 784 input nodes, one per pixel.
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 10
Weights & Softmax
• Weights
• Coefficients that amplify or mute the input signal coming into each node.
• They are assigned initial values which can be random or chosen based
upon some insight.
• A NN can be represented by its weight matrix along with its activation
functions.
• Softmax
• The softmax function, or normalized exponential, is a generalization of the
sigmoid logistic function.
• In neural network simulations, the softmax function is often implemented
at the final layer of a network used for classification.
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 11
Activation Function
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 12
• One of a set of functions that determine the threshold at each node above which a
signal is passed through the node, and below which it is blocked.
• Activation functions normalize input from a previous layer to a value between -1
and 1 to ensure an output layer probability of between 0 and 1.
• Functions that achieve this include the logistic, sigmoid, tanh and ReLU functions.
Optimization and Overfitting
• Optimization
• Refers to the manner by which a neural net minimizes error as it
adjusts its coefficients (weights) step by step.
• L-BFGS is one such algorithm.
• Overfitting
• Overfitting is where too many parameters are used in the model
constructed to fit the data which leads to poor predictive power of
the model.
• Regularisation, cross-validation and dropout are all methods used to
address this problem.
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 13
Regularisation and Cross-validation
• Both techniques are used to prevent overfitting
• Regularisation
• Regularisation refers to a process of introducing additional information in order to
prevent overfitting.
• It penalizes models with extreme parameter values by introducing a factor which weights
the penalty against more complex models with an increasing variance in the data errors.
• Cross-validation
• Cross-validation combines sampling sets to correct for overfitting and derive a more
accurate estimate of model prediction performance.
• One round of cross-validation involves partitioning a sample of data into complementary
subsets, performing the analysis on one subset (called the training set), and validating
the analysis on the other subset (called the validation set or testing set).
• To reduce variability, multiple rounds of cross-validation are performed using different
partitions, and the validation results are averaged over the rounds.
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 14
Feed Forward Networks
• The feedforward neural network was the first and simplest type of artificial neural
network devised.
• In this network, the information moves in only one direction, forward, from the
input nodes, through the hidden nodes and to the output nodes.
• There are no cycles or feedback loops in the network.
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 15
Support Vector Machines (SVM)
• Support vector machines are supervised learning algorithms that analyze data
and recognize patterns, in order to classify data points (Vapnik, 1979).
• Given a set of training examples, each marked for belonging to one of two
categories, an SVM training algorithm builds a model that assigns new examples
into one category or the other – it is a linear classifier.
• Recently SVM’s have been usurped by the success of deep learning algorithms.
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 16
Stochastic Gradient Descent
• Stochastic gradient descent is a popular algorithm for training a wide range of models
in machine learning, including support vector machines and logistic regression.
• When combined with the backpropagation algorithm, it is the de facto standard
algorithm for training artificial neural networks.
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 17
Back Propagation
• Backpropagation is a common method of training artificial neural networks used in conjunction
with an optimization method such as gradient descent.
• The method calculates the gradient of a loss function with respect to all the weights in the
network.
• The gradient is fed to the optimization method which in turn uses it to update the weights, in an
attempt to minimize the loss function.
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 18
Markov Models
• Markov Model
• A Markov model is a stochastic (probabilistic) model used to model
randomly changing systems where it is assumed that future states depend
only on the present state and not on the sequence of events that preceded
it.
• Markov Chain
• Markov Chains are essentially logical circuits that connect two or more
states via probabilities.
• Markov Chains are sequential. Their purpose is to give you a good idea,
given one state, of what the next state will be.
• Use cases include natural language processing (NLP) and stock price
trading.
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 19
Hidden Markov Model
• An HMM is a statistical Markov model in which the system being modeled is
assumed to be a Markov process with unobserved (hidden) states.
• A HMM can be presented as the simplest dynamic Bayesian network.
• They are used in time series prediction, e.g., in language analysis.
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 20
Restricted Boltzmann Machines & Autoencoders
• Restricted Boltzmann Machines (RBM)
• Invented by Geoff Hinton (1999) at the University of Toronto, RBMs are shallow, two-
layer neural nets consisting of an input layer and a hidden layer.
• They constitute the building blocks of deep neural networks - a deep learning network is
simply many restricted Boltzmann machines stacked on top of one another.
• Nodes are connected to each other across layers, but have the restriction that no two
nodes of the same layer are linked.
• Autoencoder
• An autoencoder is an ANN used for learning efficient codings.
• The aim of an autoencoder is to learn a compressed, distributed representation
(encoding) for a set of data, typically for the purpose of dimensionality reduction.
• In an autoencoder, the output layer has equally many nodes as the input layer, and
instead of training it to predict some target value y given inputs x, an autoencoder is
trained to reconstruct its own inputs x.
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 21
Max Pooling and Cost Functions
• Max Pooling
• In CNN’s, max-pooling partitions the input image into a set of non-overlapping rectangles and, for
each such sub-region, outputs the maximum value.
• Loss Function
• A loss function or cost function is a function that maps an event or values of one or more variables
onto a real number intuitively representing some "cost" associated with the event.
• The opposite of a loss function is called a reward function, or utility function.
• Dropout
The dropout method is introduced to prevent overfitting.
• At each training stage, individual nodes are either "dropped out" of the net with probability 1-p or
kept with probability p, so that a reduced network is left.
• By avoiding training all nodes on all the training data, dropout decreases overfitting in neural nets.
• The method also significantly improves the speed of training.
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 22
Convolutional Neural Networks
• First developed in 1970’s.
• Widely used for image recognition and classification.
• Inspired by biological processes, CNN’s are a type of feed-forward ANN.
• The individual neurons are tiled in such a way that they respond to overlapping
regions in the visual field.
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 23
Recurrent Neural Networks
• First developed in 1970’s.
• RNN’s are neural networks that are used to predict the next element in a
sequence or time series.
• This could be, for example, words in a sentence or letters in a word.
• Applications include predicting or generating music, stories, news, code, financial
instrument pricing, text, speech, in fact the next element in any event stream.
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 24
LSTM and NTM
• Long Short Term Memory (LSTM)
• LSTM is an RNN architecture that contains blocks that can remember a value for an
arbitrary length of time.
• It solves the vanishing or exploding gradient problem when calculating back propagation.
• An LSTM network is universal in the sense that given enough network units it can
compute anything a conventional computer can compute, provided it has the proper
weight matrix.
• LSTM outperforms alternative RNNs and Hidden Markov Models and other sequence
learning methods in numerous applications, e.g., in handwriting recognition, speech
recognition and music composition.
• Neural Turing Machines (NTM)
• NTMs are a method of extending the capabilities of recurrent neural networks by
coupling them to external memory resources.
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 25
Deep Learning Frameworks
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 26
Framework = Toolkit = Library
Deep Learning Frameworks
• Apache SINGA
• Brainstorm
• Caffe
• Chainer
• CNTK (Microsoft)
• DL4J
• DMLC
• Fbcunn (Facebook)
• Lasagne
• Minerva
• Mocha.jl (Julia)
• MXnet
• Neon (Nervana)
• Purine
• Tensorflow (Google)
• Theano
• Torch
• Warp-CTC (Baidu)
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 27
Deep Learning Frameworks (cont)
• Brain (Javascript)
• Cudamat
• Deep Learning Framework (Intel)
• Deepnet
• Hebel
• Infer.NET
• Keras
• Leaf
• MLPNeuralNet
• Neural Network Toolbox
(MatLab)
• Neuraltalk
• Neurolab
• OpenDeep
• PyBrain
• Swift-AI
• VELES (Samsung)
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 28
Some Specific DL Libraries
• ANN
• Brainstorm
• clab/cnn
• DeepHear (music composition)
• DoctorTeeth/diffmem
• miloharper/neural-network-animation
• CNN
• ConvNetJS
• Marvin
• MatConvNet
• RNN
• awesome-rnn
• karpathy/char-rnn
• karpathy/neuraltalk2
• wojciechz/learning_to_execute
• LSTM
• dl4j-0.4 Graves LTSM
• github.nicodjimenez/lstm
• Russell91/LSTMSummation
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 29
TensorFlow
• TensorFlow is the newly (Nov 2015) open sourced deep learning library
from Google.
• It is their second generation system for the implementation and
deployment of large-scale machine learning models.
• Written in C++ with a python interface, it is borne from research and
deploying machine learning projects throughout a wide range of
Google products and services.
• Initially TF ran only on a single node (your laptop, say), but Google have
recently released a version that now runs on a cluster.
• https://www.tensorflow.org/
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 30
Torch
• First released in 2000, with over 50,000 downloads, company users
include Google, Facebook, Twitter.
• The goal of Torch is to have maximum flexibility and speed in building
scientific algorithms while making the process extremely simple.
• Torch is a neural network library written in Lua with a C/CUDA
interface originally developed by a team from the Swiss institute EPFL.
• At the heart of Torch are popular neural network and optimization
libraries which are simple to use, while being flexible in implementing
different complex neural network topologies.
• http://torch.ch/
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 31
Theano
• Theano is a deep learning library written in python and popular for its
ease of use.
• Using Theano, it is possible to attain speeds rivalling hand-crafted C
implementations for problems involving large amounts of data.
• Theano has been powering large-scale computationally intensive
scientific investigations since 2007
• Supports CuDNN v3
• http://deeplearning.net/software/theano/
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 32
DL Framework Comparison
• The most common metrics we can use to compare these deep learning frameworks are:
• Speed of execution
• Ease of use
• Languages used (core and front end)
• Resources (CPU and memory capacity) needed in order to run the various algorithms
• GPU support
• Size of active community of users
• Contributors and committers
• Platforms supported (e.g., OS, single devices and/or distributed systems)
• Algorithmic support
• Number of packages in their library
• For example, various benchmarks and comparisons are available here:
https://github.com/soumith/convnet-benchmarks
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 33
Questions?
Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 34
www.datasciencepartnership.com
@insight_ai

Contenu connexe

Tendances

Convolution Neural Network (CNN)
Convolution Neural Network (CNN)Convolution Neural Network (CNN)
Convolution Neural Network (CNN)Suraj Aavula
 
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...Simplilearn
 
Deep learning - A Visual Introduction
Deep learning - A Visual IntroductionDeep learning - A Visual Introduction
Deep learning - A Visual IntroductionLukas Masuch
 
Machine Learning with Decision trees
Machine Learning with Decision treesMachine Learning with Decision trees
Machine Learning with Decision treesKnoldus Inc.
 
Introduction to Recurrent Neural Network
Introduction to Recurrent Neural NetworkIntroduction to Recurrent Neural Network
Introduction to Recurrent Neural NetworkKnoldus Inc.
 
Deep Learning With Neural Networks
Deep Learning With Neural NetworksDeep Learning With Neural Networks
Deep Learning With Neural NetworksAniket Maurya
 
AI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete Deck
AI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete DeckAI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete Deck
AI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete DeckSlideTeam
 
Training Neural Networks
Training Neural NetworksTraining Neural Networks
Training Neural NetworksDatabricks
 
Deep learning with Keras
Deep learning with KerasDeep learning with Keras
Deep learning with KerasQuantUniversity
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine LearningLior Rokach
 
Lecture1 introduction to machine learning
Lecture1 introduction to machine learningLecture1 introduction to machine learning
Lecture1 introduction to machine learningUmmeSalmaM1
 
Linear regression
Linear regressionLinear regression
Linear regressionMartinHogg9
 
Deep Learning Explained
Deep Learning ExplainedDeep Learning Explained
Deep Learning ExplainedMelanie Swan
 
Artificial neural network model & hidden layers in multilayer artificial neur...
Artificial neural network model & hidden layers in multilayer artificial neur...Artificial neural network model & hidden layers in multilayer artificial neur...
Artificial neural network model & hidden layers in multilayer artificial neur...Muhammad Ishaq
 
The fundamentals of Machine Learning
The fundamentals of Machine LearningThe fundamentals of Machine Learning
The fundamentals of Machine LearningHichem Felouat
 
Multilayer perceptron
Multilayer perceptronMultilayer perceptron
Multilayer perceptronomaraldabash
 
Sequence Modelling with Deep Learning
Sequence Modelling with Deep LearningSequence Modelling with Deep Learning
Sequence Modelling with Deep LearningNatasha Latysheva
 

Tendances (20)

Convolution Neural Network (CNN)
Convolution Neural Network (CNN)Convolution Neural Network (CNN)
Convolution Neural Network (CNN)
 
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
 
Deep learning - A Visual Introduction
Deep learning - A Visual IntroductionDeep learning - A Visual Introduction
Deep learning - A Visual Introduction
 
Machine Learning with Decision trees
Machine Learning with Decision treesMachine Learning with Decision trees
Machine Learning with Decision trees
 
Introduction to Recurrent Neural Network
Introduction to Recurrent Neural NetworkIntroduction to Recurrent Neural Network
Introduction to Recurrent Neural Network
 
Deep learning
Deep learningDeep learning
Deep learning
 
Deep Learning With Neural Networks
Deep Learning With Neural NetworksDeep Learning With Neural Networks
Deep Learning With Neural Networks
 
AI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete Deck
AI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete DeckAI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete Deck
AI Vs ML Vs DL PowerPoint Presentation Slide Templates Complete Deck
 
Lstm
LstmLstm
Lstm
 
Training Neural Networks
Training Neural NetworksTraining Neural Networks
Training Neural Networks
 
Deep learning with Keras
Deep learning with KerasDeep learning with Keras
Deep learning with Keras
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine Learning
 
Lecture1 introduction to machine learning
Lecture1 introduction to machine learningLecture1 introduction to machine learning
Lecture1 introduction to machine learning
 
Linear regression
Linear regressionLinear regression
Linear regression
 
Deep Learning Explained
Deep Learning ExplainedDeep Learning Explained
Deep Learning Explained
 
Artificial neural network model & hidden layers in multilayer artificial neur...
Artificial neural network model & hidden layers in multilayer artificial neur...Artificial neural network model & hidden layers in multilayer artificial neur...
Artificial neural network model & hidden layers in multilayer artificial neur...
 
The fundamentals of Machine Learning
The fundamentals of Machine LearningThe fundamentals of Machine Learning
The fundamentals of Machine Learning
 
Attention Models (D3L6 2017 UPC Deep Learning for Computer Vision)
Attention Models (D3L6 2017 UPC Deep Learning for Computer Vision)Attention Models (D3L6 2017 UPC Deep Learning for Computer Vision)
Attention Models (D3L6 2017 UPC Deep Learning for Computer Vision)
 
Multilayer perceptron
Multilayer perceptronMultilayer perceptron
Multilayer perceptron
 
Sequence Modelling with Deep Learning
Sequence Modelling with Deep LearningSequence Modelling with Deep Learning
Sequence Modelling with Deep Learning
 

Similaire à Deep Learning Frameworks Guide

minimalist-business-slides.v dsgjnejgndjgnejgnjgnrjhgdjgngdngtpptx
minimalist-business-slides.v dsgjnejgndjgnejgnjgnrjhgdjgngdngtpptxminimalist-business-slides.v dsgjnejgndjgnejgnjgnrjhgdjgngdngtpptx
minimalist-business-slides.v dsgjnejgndjgnejgnjgnrjhgdjgngdngtpptxElizanderGalasi1
 
Facial Emotion Detection on Children's Emotional Face
Facial Emotion Detection on Children's Emotional FaceFacial Emotion Detection on Children's Emotional Face
Facial Emotion Detection on Children's Emotional FaceTakrim Ul Islam Laskar
 
ML Module 3 Non Linear Learning.pptx
ML Module 3 Non Linear Learning.pptxML Module 3 Non Linear Learning.pptx
ML Module 3 Non Linear Learning.pptxDebabrataPain1
 
MDEC Data Matters Series: machine learning and Deep Learning, A Primer
MDEC Data Matters Series: machine learning and Deep Learning, A PrimerMDEC Data Matters Series: machine learning and Deep Learning, A Primer
MDEC Data Matters Series: machine learning and Deep Learning, A PrimerPoo Kuan Hoong
 
Tsinghua invited talk_zhou_xing_v2r0
Tsinghua invited talk_zhou_xing_v2r0Tsinghua invited talk_zhou_xing_v2r0
Tsinghua invited talk_zhou_xing_v2r0Joe Xing
 
DSRLab seminar Introduction to deep learning
DSRLab seminar   Introduction to deep learningDSRLab seminar   Introduction to deep learning
DSRLab seminar Introduction to deep learningPoo Kuan Hoong
 
Introduction to Neural networks (under graduate course) Lecture 9 of 9
Introduction to Neural networks (under graduate course) Lecture 9 of 9Introduction to Neural networks (under graduate course) Lecture 9 of 9
Introduction to Neural networks (under graduate course) Lecture 9 of 9Randa Elanwar
 
Artificial neural networks and its application
Artificial neural networks and its applicationArtificial neural networks and its application
Artificial neural networks and its applicationHưng Đặng
 
Artificial neural networks and its application
Artificial neural networks and its applicationArtificial neural networks and its application
Artificial neural networks and its applicationHưng Đặng
 
neuralnetwork.pptx
neuralnetwork.pptxneuralnetwork.pptx
neuralnetwork.pptxSherinRappai
 
Natural Language Processing Advancements By Deep Learning: A Survey
Natural Language Processing Advancements By Deep Learning: A SurveyNatural Language Processing Advancements By Deep Learning: A Survey
Natural Language Processing Advancements By Deep Learning: A SurveyRimzim Thube
 
Deep learning notes.pptx
Deep learning notes.pptxDeep learning notes.pptx
Deep learning notes.pptxPandi Gingee
 
CSA 3702 machine learning module 1
CSA 3702 machine learning module 1CSA 3702 machine learning module 1
CSA 3702 machine learning module 1Nandhini S
 
Artificial Neural Networks: Applications In Management
Artificial Neural Networks: Applications In ManagementArtificial Neural Networks: Applications In Management
Artificial Neural Networks: Applications In ManagementIOSR Journals
 
Deep learning from a novice perspective
Deep learning from a novice perspectiveDeep learning from a novice perspective
Deep learning from a novice perspectiveAnirban Santara
 
Intro to machine learning
Intro to machine learningIntro to machine learning
Intro to machine learningAkshay Kanchan
 
33.-Multi-Layer-Perceptron.pdf
33.-Multi-Layer-Perceptron.pdf33.-Multi-Layer-Perceptron.pdf
33.-Multi-Layer-Perceptron.pdfgnans Kgnanshek
 

Similaire à Deep Learning Frameworks Guide (20)

Neural network
Neural networkNeural network
Neural network
 
minimalist-business-slides.v dsgjnejgndjgnejgnjgnrjhgdjgngdngtpptx
minimalist-business-slides.v dsgjnejgndjgnejgnjgnrjhgdjgngdngtpptxminimalist-business-slides.v dsgjnejgndjgnejgnjgnrjhgdjgngdngtpptx
minimalist-business-slides.v dsgjnejgndjgnejgnjgnrjhgdjgngdngtpptx
 
Facial Emotion Detection on Children's Emotional Face
Facial Emotion Detection on Children's Emotional FaceFacial Emotion Detection on Children's Emotional Face
Facial Emotion Detection on Children's Emotional Face
 
ML Module 3 Non Linear Learning.pptx
ML Module 3 Non Linear Learning.pptxML Module 3 Non Linear Learning.pptx
ML Module 3 Non Linear Learning.pptx
 
MDEC Data Matters Series: machine learning and Deep Learning, A Primer
MDEC Data Matters Series: machine learning and Deep Learning, A PrimerMDEC Data Matters Series: machine learning and Deep Learning, A Primer
MDEC Data Matters Series: machine learning and Deep Learning, A Primer
 
Tsinghua invited talk_zhou_xing_v2r0
Tsinghua invited talk_zhou_xing_v2r0Tsinghua invited talk_zhou_xing_v2r0
Tsinghua invited talk_zhou_xing_v2r0
 
DSRLab seminar Introduction to deep learning
DSRLab seminar   Introduction to deep learningDSRLab seminar   Introduction to deep learning
DSRLab seminar Introduction to deep learning
 
Introduction to Neural networks (under graduate course) Lecture 9 of 9
Introduction to Neural networks (under graduate course) Lecture 9 of 9Introduction to Neural networks (under graduate course) Lecture 9 of 9
Introduction to Neural networks (under graduate course) Lecture 9 of 9
 
Artificial neural networks and its application
Artificial neural networks and its applicationArtificial neural networks and its application
Artificial neural networks and its application
 
Artificial neural networks and its application
Artificial neural networks and its applicationArtificial neural networks and its application
Artificial neural networks and its application
 
neuralnetwork.pptx
neuralnetwork.pptxneuralnetwork.pptx
neuralnetwork.pptx
 
neuralnetwork.pptx
neuralnetwork.pptxneuralnetwork.pptx
neuralnetwork.pptx
 
Natural Language Processing Advancements By Deep Learning: A Survey
Natural Language Processing Advancements By Deep Learning: A SurveyNatural Language Processing Advancements By Deep Learning: A Survey
Natural Language Processing Advancements By Deep Learning: A Survey
 
Deep learning notes.pptx
Deep learning notes.pptxDeep learning notes.pptx
Deep learning notes.pptx
 
CSA 3702 machine learning module 1
CSA 3702 machine learning module 1CSA 3702 machine learning module 1
CSA 3702 machine learning module 1
 
Artificial Neural Networks: Applications In Management
Artificial Neural Networks: Applications In ManagementArtificial Neural Networks: Applications In Management
Artificial Neural Networks: Applications In Management
 
Deep learning from a novice perspective
Deep learning from a novice perspectiveDeep learning from a novice perspective
Deep learning from a novice perspective
 
Intro to machine learning
Intro to machine learningIntro to machine learning
Intro to machine learning
 
Neural Networks
Neural NetworksNeural Networks
Neural Networks
 
33.-Multi-Layer-Perceptron.pdf
33.-Multi-Layer-Perceptron.pdf33.-Multi-Layer-Perceptron.pdf
33.-Multi-Layer-Perceptron.pdf
 

Plus de Sheamus McGovern

Knime customer intelligence on social edia
Knime customer intelligence on social ediaKnime customer intelligence on social edia
Knime customer intelligence on social ediaSheamus McGovern
 
Jon Sedar Topic Modelling
Jon Sedar Topic Modelling Jon Sedar Topic Modelling
Jon Sedar Topic Modelling Sheamus McGovern
 
Forensic linguistics with Apache Spark
Forensic linguistics with Apache SparkForensic linguistics with Apache Spark
Forensic linguistics with Apache SparkSheamus McGovern
 
Ian Huston - "Deploying your data driven web app on Cloud Foundry"
Ian Huston - "Deploying your data driven web app on Cloud Foundry" Ian Huston - "Deploying your data driven web app on Cloud Foundry"
Ian Huston - "Deploying your data driven web app on Cloud Foundry" Sheamus McGovern
 

Plus de Sheamus McGovern (8)

Knime customer intelligence on social edia
Knime customer intelligence on social ediaKnime customer intelligence on social edia
Knime customer intelligence on social edia
 
Schierz ODSC Meetup pdf
Schierz ODSC Meetup pdfSchierz ODSC Meetup pdf
Schierz ODSC Meetup pdf
 
Jon Sedar Topic Modelling
Jon Sedar Topic Modelling Jon Sedar Topic Modelling
Jon Sedar Topic Modelling
 
Forensic linguistics with Apache Spark
Forensic linguistics with Apache SparkForensic linguistics with Apache Spark
Forensic linguistics with Apache Spark
 
Boris IoT slides
Boris IoT slides Boris IoT slides
Boris IoT slides
 
Transfer Wise Data Talk 2
Transfer Wise Data Talk 2Transfer Wise Data Talk 2
Transfer Wise Data Talk 2
 
Ajit jaokar slides
Ajit jaokar slidesAjit jaokar slides
Ajit jaokar slides
 
Ian Huston - "Deploying your data driven web app on Cloud Foundry"
Ian Huston - "Deploying your data driven web app on Cloud Foundry" Ian Huston - "Deploying your data driven web app on Cloud Foundry"
Ian Huston - "Deploying your data driven web app on Cloud Foundry"
 

Dernier

Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...dajasot375
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default  Presentation : Data Analysis Project PPTPredictive Analysis for Loan Default  Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPTBoston Institute of Analytics
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDRafezzaman
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home ServiceSapana Sha
 
Heart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis ProjectHeart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis ProjectBoston Institute of Analytics
 
ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Cantervoginip
 
IMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptxIMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptxdolaknnilon
 
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝DelhiRS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhijennyeacort
 
MK KOMUNIKASI DATA (TI)komdat komdat.docx
MK KOMUNIKASI DATA (TI)komdat komdat.docxMK KOMUNIKASI DATA (TI)komdat komdat.docx
MK KOMUNIKASI DATA (TI)komdat komdat.docxUnduhUnggah1
 
Identifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanIdentifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanMYRABACSAFRA2
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...Boston Institute of Analytics
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Sapana Sha
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)jennyeacort
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 2Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 217djon017
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
Top 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In QueensTop 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In Queensdataanalyticsqueen03
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfPredicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfBoston Institute of Analytics
 

Dernier (20)

Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default  Presentation : Data Analysis Project PPTPredictive Analysis for Loan Default  Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service
 
Heart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis ProjectHeart Disease Classification Report: A Data Analysis Project
Heart Disease Classification Report: A Data Analysis Project
 
ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Canter
 
IMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptxIMA MSN - Medical Students Network (2).pptx
IMA MSN - Medical Students Network (2).pptx
 
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝DelhiRS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
 
MK KOMUNIKASI DATA (TI)komdat komdat.docx
MK KOMUNIKASI DATA (TI)komdat komdat.docxMK KOMUNIKASI DATA (TI)komdat komdat.docx
MK KOMUNIKASI DATA (TI)komdat komdat.docx
 
Identifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanIdentifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population Mean
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 2Easter Eggs From Star Wars and in cars 1 and 2
Easter Eggs From Star Wars and in cars 1 and 2
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
Top 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In QueensTop 5 Best Data Analytics Courses In Queens
Top 5 Best Data Analytics Courses In Queens
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfPredicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
 

Deep Learning Frameworks Guide

  • 1. Deep Learning - Concepts & Frameworks Peter Morgan – Data Science Partnership Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 1
  • 2. Contents • Deep Learning Concepts ………….3 • Deep Learning Frameworks …..26 • Specific Frameworks ………..……30 • Comparison …………………………..33 • Questions ………………………………34 Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 2
  • 3. Overview - Concepts not Code No Maths No Code Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 3
  • 4. Frameworks - The Big Picture Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 4 AI Frameworks Cognitive Architectures ML Frameworks Supervised, Unsupervised & Reinforcement Deep Learning Frameworks Neural Nets
  • 5. What is Deep learning? • Deep learning refers to algorithms based on artificial neural networks (ANNs), which in turn are based on biological neural networks (BNN), such as the human brain. • In practice it consists of mulitple layers, nodes, weights and optimisation algorithms • Due to more labeled data, more compute power, better optimization algorithms, and better neural net models and architectures, deep learning has started to supersede humans when it comes to image recognition and classification. • Work is being done to obtain similar levels of performance in natural language processing and understanding. • Deep learning applies to supervised, unsupervised and reinforcement learning. • According to Jeff Dean in a recent interview, Google have implemented DL in over one hundred of their products and services including search and photos. Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 5
  • 6. Deep Learning Evolution Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 6
  • 7. Deep Learning Concepts Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 7
  • 8. Data Sets • Raw data input into the neural network can originate from any environmental source. • It can be recorded and stored in a database (e.g., text, images, audio, video) or live (incident directly from the environment), so called streaming data. • Examples of recorded data sets include the MNIST and Labeled Faces in the Wild (LFW). Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 8 MNIST LFW
  • 9. Multilayer Perceptron (MLP) • A MLP is a feedforward artificial neural network model that maps sets of input data onto a set of appropriate outputs (Rosenblatt, 1958). • An MLP consists of multiple layers of nodes with each layer fully connected to the next one. • Except for the input nodes, each node is a neuron (or processing element) with a nonlinear activation function. • MLP utilizes a supervised learning technique called backpropagation for training the network. Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 9
  • 10. Layers and Nodes • Layers • A neural network is made up of layers of nodes. • There is an input (visible) layer, an output (classification) layer, and several hidden layers. • A typical NN may have between 10 and 30 layers, but sometimes many more. • Every layer of a deep learning network requires four elements: the input (vector), the weights (matrix), a bias and the transform (activation function). • Nodes • Nodes in a neural network represent the places where calculations are done. • At each node, the input values xi are multiplied by a weight wi, summed, added to a bias b, and fed into an activation function. • A decision is then made whether to transmit the resultant value depending on if it exceeds a certain threshold value or not. • For example, images from the MNIST data set have 784 pixels, so neural nets processing them must have 784 input nodes, one per pixel. Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 10
  • 11. Weights & Softmax • Weights • Coefficients that amplify or mute the input signal coming into each node. • They are assigned initial values which can be random or chosen based upon some insight. • A NN can be represented by its weight matrix along with its activation functions. • Softmax • The softmax function, or normalized exponential, is a generalization of the sigmoid logistic function. • In neural network simulations, the softmax function is often implemented at the final layer of a network used for classification. Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 11
  • 12. Activation Function Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 12 • One of a set of functions that determine the threshold at each node above which a signal is passed through the node, and below which it is blocked. • Activation functions normalize input from a previous layer to a value between -1 and 1 to ensure an output layer probability of between 0 and 1. • Functions that achieve this include the logistic, sigmoid, tanh and ReLU functions.
  • 13. Optimization and Overfitting • Optimization • Refers to the manner by which a neural net minimizes error as it adjusts its coefficients (weights) step by step. • L-BFGS is one such algorithm. • Overfitting • Overfitting is where too many parameters are used in the model constructed to fit the data which leads to poor predictive power of the model. • Regularisation, cross-validation and dropout are all methods used to address this problem. Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 13
  • 14. Regularisation and Cross-validation • Both techniques are used to prevent overfitting • Regularisation • Regularisation refers to a process of introducing additional information in order to prevent overfitting. • It penalizes models with extreme parameter values by introducing a factor which weights the penalty against more complex models with an increasing variance in the data errors. • Cross-validation • Cross-validation combines sampling sets to correct for overfitting and derive a more accurate estimate of model prediction performance. • One round of cross-validation involves partitioning a sample of data into complementary subsets, performing the analysis on one subset (called the training set), and validating the analysis on the other subset (called the validation set or testing set). • To reduce variability, multiple rounds of cross-validation are performed using different partitions, and the validation results are averaged over the rounds. Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 14
  • 15. Feed Forward Networks • The feedforward neural network was the first and simplest type of artificial neural network devised. • In this network, the information moves in only one direction, forward, from the input nodes, through the hidden nodes and to the output nodes. • There are no cycles or feedback loops in the network. Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 15
  • 16. Support Vector Machines (SVM) • Support vector machines are supervised learning algorithms that analyze data and recognize patterns, in order to classify data points (Vapnik, 1979). • Given a set of training examples, each marked for belonging to one of two categories, an SVM training algorithm builds a model that assigns new examples into one category or the other – it is a linear classifier. • Recently SVM’s have been usurped by the success of deep learning algorithms. Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 16
  • 17. Stochastic Gradient Descent • Stochastic gradient descent is a popular algorithm for training a wide range of models in machine learning, including support vector machines and logistic regression. • When combined with the backpropagation algorithm, it is the de facto standard algorithm for training artificial neural networks. Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 17
  • 18. Back Propagation • Backpropagation is a common method of training artificial neural networks used in conjunction with an optimization method such as gradient descent. • The method calculates the gradient of a loss function with respect to all the weights in the network. • The gradient is fed to the optimization method which in turn uses it to update the weights, in an attempt to minimize the loss function. Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 18
  • 19. Markov Models • Markov Model • A Markov model is a stochastic (probabilistic) model used to model randomly changing systems where it is assumed that future states depend only on the present state and not on the sequence of events that preceded it. • Markov Chain • Markov Chains are essentially logical circuits that connect two or more states via probabilities. • Markov Chains are sequential. Their purpose is to give you a good idea, given one state, of what the next state will be. • Use cases include natural language processing (NLP) and stock price trading. Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 19
  • 20. Hidden Markov Model • An HMM is a statistical Markov model in which the system being modeled is assumed to be a Markov process with unobserved (hidden) states. • A HMM can be presented as the simplest dynamic Bayesian network. • They are used in time series prediction, e.g., in language analysis. Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 20
  • 21. Restricted Boltzmann Machines & Autoencoders • Restricted Boltzmann Machines (RBM) • Invented by Geoff Hinton (1999) at the University of Toronto, RBMs are shallow, two- layer neural nets consisting of an input layer and a hidden layer. • They constitute the building blocks of deep neural networks - a deep learning network is simply many restricted Boltzmann machines stacked on top of one another. • Nodes are connected to each other across layers, but have the restriction that no two nodes of the same layer are linked. • Autoencoder • An autoencoder is an ANN used for learning efficient codings. • The aim of an autoencoder is to learn a compressed, distributed representation (encoding) for a set of data, typically for the purpose of dimensionality reduction. • In an autoencoder, the output layer has equally many nodes as the input layer, and instead of training it to predict some target value y given inputs x, an autoencoder is trained to reconstruct its own inputs x. Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 21
  • 22. Max Pooling and Cost Functions • Max Pooling • In CNN’s, max-pooling partitions the input image into a set of non-overlapping rectangles and, for each such sub-region, outputs the maximum value. • Loss Function • A loss function or cost function is a function that maps an event or values of one or more variables onto a real number intuitively representing some "cost" associated with the event. • The opposite of a loss function is called a reward function, or utility function. • Dropout The dropout method is introduced to prevent overfitting. • At each training stage, individual nodes are either "dropped out" of the net with probability 1-p or kept with probability p, so that a reduced network is left. • By avoiding training all nodes on all the training data, dropout decreases overfitting in neural nets. • The method also significantly improves the speed of training. Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 22
  • 23. Convolutional Neural Networks • First developed in 1970’s. • Widely used for image recognition and classification. • Inspired by biological processes, CNN’s are a type of feed-forward ANN. • The individual neurons are tiled in such a way that they respond to overlapping regions in the visual field. Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 23
  • 24. Recurrent Neural Networks • First developed in 1970’s. • RNN’s are neural networks that are used to predict the next element in a sequence or time series. • This could be, for example, words in a sentence or letters in a word. • Applications include predicting or generating music, stories, news, code, financial instrument pricing, text, speech, in fact the next element in any event stream. Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 24
  • 25. LSTM and NTM • Long Short Term Memory (LSTM) • LSTM is an RNN architecture that contains blocks that can remember a value for an arbitrary length of time. • It solves the vanishing or exploding gradient problem when calculating back propagation. • An LSTM network is universal in the sense that given enough network units it can compute anything a conventional computer can compute, provided it has the proper weight matrix. • LSTM outperforms alternative RNNs and Hidden Markov Models and other sequence learning methods in numerous applications, e.g., in handwriting recognition, speech recognition and music composition. • Neural Turing Machines (NTM) • NTMs are a method of extending the capabilities of recurrent neural networks by coupling them to external memory resources. Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 25
  • 26. Deep Learning Frameworks Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 26 Framework = Toolkit = Library
  • 27. Deep Learning Frameworks • Apache SINGA • Brainstorm • Caffe • Chainer • CNTK (Microsoft) • DL4J • DMLC • Fbcunn (Facebook) • Lasagne • Minerva • Mocha.jl (Julia) • MXnet • Neon (Nervana) • Purine • Tensorflow (Google) • Theano • Torch • Warp-CTC (Baidu) Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 27
  • 28. Deep Learning Frameworks (cont) • Brain (Javascript) • Cudamat • Deep Learning Framework (Intel) • Deepnet • Hebel • Infer.NET • Keras • Leaf • MLPNeuralNet • Neural Network Toolbox (MatLab) • Neuraltalk • Neurolab • OpenDeep • PyBrain • Swift-AI • VELES (Samsung) Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 28
  • 29. Some Specific DL Libraries • ANN • Brainstorm • clab/cnn • DeepHear (music composition) • DoctorTeeth/diffmem • miloharper/neural-network-animation • CNN • ConvNetJS • Marvin • MatConvNet • RNN • awesome-rnn • karpathy/char-rnn • karpathy/neuraltalk2 • wojciechz/learning_to_execute • LSTM • dl4j-0.4 Graves LTSM • github.nicodjimenez/lstm • Russell91/LSTMSummation Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 29
  • 30. TensorFlow • TensorFlow is the newly (Nov 2015) open sourced deep learning library from Google. • It is their second generation system for the implementation and deployment of large-scale machine learning models. • Written in C++ with a python interface, it is borne from research and deploying machine learning projects throughout a wide range of Google products and services. • Initially TF ran only on a single node (your laptop, say), but Google have recently released a version that now runs on a cluster. • https://www.tensorflow.org/ Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 30
  • 31. Torch • First released in 2000, with over 50,000 downloads, company users include Google, Facebook, Twitter. • The goal of Torch is to have maximum flexibility and speed in building scientific algorithms while making the process extremely simple. • Torch is a neural network library written in Lua with a C/CUDA interface originally developed by a team from the Swiss institute EPFL. • At the heart of Torch are popular neural network and optimization libraries which are simple to use, while being flexible in implementing different complex neural network topologies. • http://torch.ch/ Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 31
  • 32. Theano • Theano is a deep learning library written in python and popular for its ease of use. • Using Theano, it is possible to attain speeds rivalling hand-crafted C implementations for problems involving large amounts of data. • Theano has been powering large-scale computationally intensive scientific investigations since 2007 • Supports CuDNN v3 • http://deeplearning.net/software/theano/ Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 32
  • 33. DL Framework Comparison • The most common metrics we can use to compare these deep learning frameworks are: • Speed of execution • Ease of use • Languages used (core and front end) • Resources (CPU and memory capacity) needed in order to run the various algorithms • GPU support • Size of active community of users • Contributors and committers • Platforms supported (e.g., OS, single devices and/or distributed systems) • Algorithmic support • Number of packages in their library • For example, various benchmarks and comparisons are available here: https://github.com/soumith/convnet-benchmarks Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 33
  • 34. Questions? Deep Learning Frameworks ODSC Meetup Peter Morgan 16 Mar 2016 34 www.datasciencepartnership.com @insight_ai