Whoa, That’s Deep Man
An introduction to deep learning in R
Martin Eastwood
ARTIFICIAL INTELLIGENCE
Broad field of study dedicated to simulating
human intelligence using machines
MACHINE LEARNING
Algorithms that can learn without
being explicitly programmed
DEEP LEARNING
Use of multi-layered neural
networks to learn data
representations
What is
Deep learning?
Manual Feature
Extraction /
transformation
ML Classifier
algorithm
It’s a cat!
Neural
network
layer
Neural
network
layer
Neural
network
layer
Neural
network
layer
Machine Learning Vs Deep Learning
Low-level
features
mid-level
features
higher-level
features
High-level
features
No more feature engineering*
* Maybe just a little bit…
But aren’t neural networks old, what’s
changed?
We now have
much larger
data sets for
training models
Commodity
computers
and GPUs are
much more
powerful
New ways
of handling
exploding
and vanishing
gradients
Facebook Friend Tagging
Deep Learning In R
Google Pixel Ear Buds
Deep Learning Libraries in R
•MXNet
•darch
•deepnet
•h20
•deepwater
Deep Learning In R
> devtools::install_github("rstudio/keras")
> library(keras)
> install_keras()
Sentiment Analysis Using Keras
Sentiment Review
<chr> <chr>
1 I don't know why I like this movie so well, but I never get tired of watching it.
0 You'd better choose Paul Verhoeven's even if you have watched it.
1 This is the definitive movie version of Hamlet.
0 Long, boring, blasphemous. Never have I been so glad to see ending credits roll.
0 Ming The Merciless does a little Bardwork and a movie most foul!
0 I wouldn't rent this one even on dollar rental night.
> model <- keras_model_sequential()
> model %>%
layer_embedding(input_dim=max_features, output_dim=128) %>%
layer_lstm(units=64, dropout=0.25, recurrent_dropout=0.25) %>%
layer_dense(units=1, activation='sigmoid')
Define the Keras Model
model %>%
compile(loss=‘binary_crossentropy',
optimizer='adam',
metrics='accuracy')
model %>%
fit(x_train,
y_train,
batch_size=batch_size,
epochs=10,
validation_data=list(x_test, y_test))
Train the Keras Model
Training History
> predictions <- predict_classes(model, x_test)
> table(y_test, predictions)
0 1
0 10773 1727
1 2911 9589
> mean(y_test == predictions)
[1] 0.81448
Predicting Sentiment
• Keras now provides access to Tensorflow, CNTK and
Theano through R
• Can run models using either GPU / CPU
• Lots of pre-trained Keras models available
Conclusions
Questions

More Related Content

PPTX
AI Deep Learning - CF Machine Learning
PDF
Introduction of Deep Learning
PPTX
2nd DL Meetup @ Dublin - Irene
PDF
Tensorflow IoT - 1 Wk coding challenge
PPTX
Deep Learning_Tech Talk
PDF
Transfer learning for IoT
PPTX
Geek Night 17.0 - Artificial Intelligence and Machine Learning
PDF
Assignment Neuroscience to AI
AI Deep Learning - CF Machine Learning
Introduction of Deep Learning
2nd DL Meetup @ Dublin - Irene
Tensorflow IoT - 1 Wk coding challenge
Deep Learning_Tech Talk
Transfer learning for IoT
Geek Night 17.0 - Artificial Intelligence and Machine Learning
Assignment Neuroscience to AI

What's hot (20)

PDF
Tensorflow for IoT
PPTX
PDF
Deep learning
PDF
Intro deep learning
PDF
Deep Learning
PDF
Makine Öğrenmesi, Yapay Zeka ve Veri Bilimi Süreçlerinin Otomatikleştirilmesi...
PDF
Jupyter widgets for human in the loop data science
PPTX
Deep Learning for Data Scientists - Data Science ATL Meetup Presentation, 201...
PPTX
Deep learning tutorial 9/2019
PDF
From Conventional Machine Learning to Deep Learning and Beyond.pptx
PPTX
5 pen pc technology ppt
PDF
SBMT 2021: Can Neuroscience Insights Transform AI? - Lawrence Spracklen
PPTX
Emotive brain computer interface
PDF
The Enigma Complex
PDF
Weaponizing Neural Networks. In your browser!
PDF
Neural networks and deep learning
PDF
Deep Learning: Application & Opportunity
PDF
Deep learning - what is it and why now?
PDF
Donner - Deep Learning - Overview and practical aspects
Tensorflow for IoT
Deep learning
Intro deep learning
Deep Learning
Makine Öğrenmesi, Yapay Zeka ve Veri Bilimi Süreçlerinin Otomatikleştirilmesi...
Jupyter widgets for human in the loop data science
Deep Learning for Data Scientists - Data Science ATL Meetup Presentation, 201...
Deep learning tutorial 9/2019
From Conventional Machine Learning to Deep Learning and Beyond.pptx
5 pen pc technology ppt
SBMT 2021: Can Neuroscience Insights Transform AI? - Lawrence Spracklen
Emotive brain computer interface
The Enigma Complex
Weaponizing Neural Networks. In your browser!
Neural networks and deep learning
Deep Learning: Application & Opportunity
Deep learning - what is it and why now?
Donner - Deep Learning - Overview and practical aspects
Ad

Similar to Deep Learning In R (20)

PPTX
DEEP_LEARNING_Lecture1 for btech students.pptx
PPTX
deep-learning-ppt-full-notes.pptx presen
PPTX
Deep Learning on Qubole Data Platform
PDF
Machine Learning and Deep Learning with R
PPTX
A simple presentation for deep learning.
PDF
Introduction to Deep Learning: Concepts, Architectures, and Applications
PPTX
Deep Learning
PPTX
Promises of Deep Learning
PDF
Track2 02. machine intelligence at google scale google, kaz sato, staff devel...
PDF
Deep learning - A Visual Introduction
PDF
Kaz Sato, Evangelist, Google at MLconf ATL 2016
PDF
Understanding Deep Learning: The Backbone of Modern AI
PPTX
The Backbone of Modern AI Models" The architecture of Transformers
PPTX
Week3-Deep Neural Network (DNN).pptx
PPTX
Deep Neural Network function of neural network and it application
PPTX
Introduction to Deep Learning Technique.pptx
PPTX
Deep_Learning_Demo_Class_Detailed.pptx sn
PPTX
Deep Learning Tutorial
PPTX
Deep Learning with Microsoft R Open
PPTX
Introduction to deep learning
DEEP_LEARNING_Lecture1 for btech students.pptx
deep-learning-ppt-full-notes.pptx presen
Deep Learning on Qubole Data Platform
Machine Learning and Deep Learning with R
A simple presentation for deep learning.
Introduction to Deep Learning: Concepts, Architectures, and Applications
Deep Learning
Promises of Deep Learning
Track2 02. machine intelligence at google scale google, kaz sato, staff devel...
Deep learning - A Visual Introduction
Kaz Sato, Evangelist, Google at MLconf ATL 2016
Understanding Deep Learning: The Backbone of Modern AI
The Backbone of Modern AI Models" The architecture of Transformers
Week3-Deep Neural Network (DNN).pptx
Deep Neural Network function of neural network and it application
Introduction to Deep Learning Technique.pptx
Deep_Learning_Demo_Class_Detailed.pptx sn
Deep Learning Tutorial
Deep Learning with Microsoft R Open
Introduction to deep learning
Ad

Recently uploaded (20)

PDF
Developing a website for English-speaking practice to English as a foreign la...
PPTX
Chapter 5: Probability Theory and Statistics
PDF
Hybrid model detection and classification of lung cancer
PPT
Geologic Time for studying geology for geologist
PDF
Hindi spoken digit analysis for native and non-native speakers
DOCX
search engine optimization ppt fir known well about this
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PPTX
Modernising the Digital Integration Hub
PDF
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PPTX
Benefits of Physical activity for teenagers.pptx
PDF
STKI Israel Market Study 2025 version august
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
Unlock new opportunities with location data.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PDF
1 - Historical Antecedents, Social Consideration.pdf
Developing a website for English-speaking practice to English as a foreign la...
Chapter 5: Probability Theory and Statistics
Hybrid model detection and classification of lung cancer
Geologic Time for studying geology for geologist
Hindi spoken digit analysis for native and non-native speakers
search engine optimization ppt fir known well about this
O2C Customer Invoices to Receipt V15A.pptx
Modernising the Digital Integration Hub
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
NewMind AI Weekly Chronicles – August ’25 Week III
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
Benefits of Physical activity for teenagers.pptx
STKI Israel Market Study 2025 version august
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
Unlock new opportunities with location data.pdf
Assigned Numbers - 2025 - Bluetooth® Document
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
1 - Historical Antecedents, Social Consideration.pdf

Deep Learning In R