This is the repository for D-Lab’s six-hour Introduction to Deep Learning in R workshop.
We recommend attendees be intermediate R users and have had some prior exposure to the concepts in R-Machine-Learning.
Check D-Lab's Learning Pathways to figure out which of our workshops to take!
In this workshop, we provide an introduction to Deep Learning using TensorFlow and keras in R. First, we will cover the basics of what makes deep learning "deep." Then, we will explore using code to classify images. Along the way, we will build a workflow of a deep learning project.
We will use RStudio to go through the workshop materials, which requires installation of R, RStudio, and TensorFlow. Complete the following steps if you want to work locally.
install.packages(c("tensorflow", "keras", "reticulate")) # Pulls in all R dependencies necessary for TensorFlow in R
library(reticulate)
# Set up R with a Python installation it can use
virtualenv_create("r-reticulate", python = install_python())
library(keras)
install_keras(envname = "r-reticulate") # Install TensorFlow and Keras python modules
After these steps you will have a working Keras and TensorFlow installation. This process will take some time if you decide to download to your local machine. To determine the TensorFlow version installed on your machine, run in the console
library(tensorflow)
tf$constant("Hello Tensorflow!")
- Install additional packages required for this workshop
install.packages(c("tfhub", "tfdatasets")
D-Lab works with Berkeley faculty, research staff, and students to advance data-intensive social science and humanities research. Our goal at D-Lab is to provide practical training, staff support, resources, and space to enable you to use R for your own research applications. Our services cater to all skill levels and no programming, statistical, or computer science backgrounds are necessary. We offer these services in the form of workshops, one-to-one consulting, and working groups that cover a variety of research topics, digital tools, and programming languages.
Visit the D-Lab homepage to learn more about us. You can view our calendar for upcoming events, learn about how to utilize our consulting and data services, and check out upcoming workshops. Subscribe to our newsletter to stay up to date on D-Lab events, services, and opportunities.
-
Massive open online courses
- fast.ai - Practical Deep Learning for Coders
- Kaggle Deep Learning
- Google Machine Learning Crash Course
- See this sweet interactive learning rate tool
- Google seedbank examples
- DeepLearning.ai
-
Workshops
-
Stanford
- CS 20 - Tensorflow for Deep Learning Research
- CS 230 - Deep Learning
- CS 231n - Neural Networks for Visual Recognition
- CS 224n - Natural Language Processing with Deep Learning
-
Berkeley
-
UToronto CSC 321 - Intro to Deep Learning
-
Videos
- J.J. Allaire talk at RStudioConf 2018
-
Books
- F. Chollet and J.J. Allaire - Deep Learning in R
- Charniak E - Introduction to Deep Learning
- I. Goodfellow, Y. Bengio, A. Courville - www.deeplearningbook.org
- Zhang et al. - Dive into Deep Learning
D-Lab offers a variety of R workshops, catered toward different levels of expertise.