Slide 1

Slide 1 text

Introduction To Deep Learning Joshua Ndemenge @Jcardif254

Slide 2

Slide 2 text

Agenda • Concepts of Deep Learning • Deep Learning Frameworks • Building blocks of a Deep Neural Network • Deep Learning on Azure • Demo on Azure ML Studio • Building a Deep Neural Network in azure • Questions & Discussions

Slide 3

Slide 3 text

Concepts of Deep Learning

Slide 4

Slide 4 text

AI is the field of inducing intelligence into a machine or system artificially, with or without explicit programming. Machine learning can be defined as the process of inducing intelligence into a system or machine without explicit programming it. DL is a subfield of machine learning (ML) in artificial intelligence (AI) that deals with algorithms inspired from the biological structure and functioning of a brain to aid machines with intelligence.

Slide 5

Slide 5 text

Deep Learning Models Designed using neural network architecture A neural net is a hierarchical organization of neurons with connections to other neurons.

Slide 6

Slide 6 text

Deep Learning Frameworks

Slide 7

Slide 7 text

Deep Learning Frameworks Low Level DL Frameworks • Theano • Torch • PyTorch • MxNet • Tensorflow • Microsoft CNTK • Caffe High Level DL Frameworks • Keras • Gluon • Lasagne

Slide 8

Slide 8 text

Building Blocks of a Deep Neural Network

Slide 9

Slide 9 text

Input Data • A DL model understands data as tensors. • Tensors are generic form for vectors (a simple n- Dimension matrix) • A DL model can only interpret numeric data

Slide 10

Slide 10 text

Neurons

Slide 11

Slide 11 text

Activation Function ,f(z) An activation function is the function that takes the combined input z applies a function on it, and passes the output value, thus trying to mimic the activate/deactivate function. The activation function, therefore, determines the state of a neuron by computing f(z) on z. Without the Activation function : • The range of the output would be -∞ ≤ output ≤ ∞ • The network will not really learn hence rendered useless f(z)

Slide 12

Slide 12 text

Types of Activation Functions 1. Sigmoid Activation Function 2.ReLU Activation Function f(z) = 1 1+− f(z) = +1

Slide 13

Slide 13 text

Types of Activation Functions 3. Leaky ReLU 2.Tanh Squashing Activation Function f(z) =µz Where µ is a parameter defined as a small constant e.g. 0.005 f(z) =1−−2 1+−2

Slide 14

Slide 14 text

Types of Activation Functions 3. Sigmoid Squashing Function Other Activation Function include: • Tanh • Swish Activation Function • eLU (exponential Linear Unit) • SeLU (Scaled eLU) f(z) = 1+

Slide 15

Slide 15 text

Model The overall structure of a DNN is developed using the model object in Keras. This provides a simple way to create a stack of layers by adding new layers one after the other. The easiest way to define a model is by using the sequential model, which allows easy creation of a linear stack of layers.

Slide 16

Slide 16 text

Layers A layer in the DNN is defined as a group of neurons or a logically separated group in a hierarchical network structure. Some important Layers include: 1. Dense Layer 2. Dropout Layer 3. Convolution Layers 4. Recurrent Layers

Slide 17

Slide 17 text

The Loss Function This is a metric that helps the network understand whether it is learning in the right direction. Based on the type of data outcome, we have several standard loss functions defined in ML and DL. For regression use cases • Mean Square Error • Mean Absolute Error • Mean Absolute Percentage Error • Mean Square Logarithmic Error For classification use cases • Binary Loss Entropy • Categorical loss Entropy

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

Demo on Neural Net Playground

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

Deep Learning on Azure

Slide 22

Slide 22 text

Machine Learning/AI Stack at Microsoft Microsoft Cognitive Services Azure Machine Learning Service Machine Learning Studio SaaS PaaS Code First, Hybrid execution Model

Slide 23

Slide 23 text

Demo on Azure ML Studio

Slide 24

Slide 24 text

Building a Deep Neural Network in azure

Slide 25

Slide 25 text

Questions & Discussions

Slide 26

Slide 26 text

Thank You