Introduction to deep learning

Introduction to Deep Learning in Python

Dan Becker

Data Scientist and contributor to Keras and TensorFlow libraries

Imagine you work for a bank

  • You need to predict how many transactions each customer will make next year
Introduction to Deep Learning in Python

Example as seen by linear regression

ch1_1.003.png

Introduction to Deep Learning in Python

Example as seen by linear regression

ch1_1.004.png

Introduction to Deep Learning in Python

Example as seen by linear regression

ch1_1.005.png

Introduction to Deep Learning in Python

Example as seen by linear regression

ch1_1.006.png

Introduction to Deep Learning in Python

Example as seen by linear regression

ch1_1.007.png

Introduction to Deep Learning in Python

Example as seen by linear regression

ch1_1.008.png

Introduction to Deep Learning in Python

Example as seen by linear regression

ch1_1.009.png

Introduction to Deep Learning in Python

Example as seen by linear regression

ch1_1.011.png

Introduction to Deep Learning in Python

Example as seen by linear regression

ch1_1.012.png

Introduction to Deep Learning in Python

Example as seen by linear regression

ch1_1.013.png

Introduction to Deep Learning in Python

Example as seen by linear regression

ch1_1.014.png

Introduction to Deep Learning in Python

Example as seen by linear regression

ch1_1.015.png

Introduction to Deep Learning in Python

Example as seen by linear regression

ch1_1.016.png

Introduction to Deep Learning in Python

Example as seen by linear regression

ch1_1.017.png

Introduction to Deep Learning in Python

Interactions

  • Neural networks account for interactions really well
  • Deep learning uses especially powerful neural networks
    • Text
    • Images
    • Videos
    • Audio
    • Source code
Introduction to Deep Learning in Python

Course structure

  • First two chapters focus on conceptual knowledge
    • Debug and tune deep learning models on conventional prediction problems
    • Lay the foundation for progressing towards modern applications
  • This will pay off in the third and fourth chapters
Introduction to Deep Learning in Python

Build and tune deep learning models using keras

import numpy as np
from tensorflow.keras.layers import Dense
from tensorflow.keras.models import Sequential
predictors = np.loadtxt('predictors_data.csv', delimiter=',')
n_cols = predictors.shape[1]
model = Sequential()

model.add(Dense(100, activation='relu', input_shape = (n_cols,)))
model.add(Dense(100, activation='relu'))
model.add(Dense(1))
Introduction to Deep Learning in Python

Deep learning models capture interactions

ch1_1.033.png

Introduction to Deep Learning in Python

Deep learning models capture interactions

ch1_1.034.png

Introduction to Deep Learning in Python

Deep learning models capture interactions

ch1_1.035.png

Introduction to Deep Learning in Python

Interactions in neural network

ch1_1.037.png

Introduction to Deep Learning in Python

Interactions in neural network

ch1_1.038.png

Introduction to Deep Learning in Python

Interactions in neural network

ch1_1.039.png

Introduction to Deep Learning in Python

Interactions in neural network

ch1_1.040.png

Introduction to Deep Learning in Python

Interactions in neural network

ch1_1.041.png

Introduction to Deep Learning in Python

Let's practice!

Introduction to Deep Learning in Python

Preparing Video For Download...