
Deep Learning with R Cookbook
Over 45 unique recipes to delve into neural network techniques using R 3.5.x
- 328 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Deep Learning with R Cookbook
Over 45 unique recipes to delve into neural network techniques using R 3.5.x
About this book
Tackle the complex challenges faced while building end-to-end deep learning models using modern R libraries
Key Features
- Understand the intricacies of R deep learning packages to perform a range of deep learning tasks
- Implement deep learning techniques and algorithms for real-world use cases
- Explore various state-of-the-art techniques for fine-tuning neural network models
Book Description
Deep learning (DL) has evolved in recent years with developments such as generative adversarial networks (GANs), variational autoencoders (VAEs), and deep reinforcement learning. This book will get you up and running with R 3.5.x to help you implement DL techniques.
The book starts with the various DL techniques that you can implement in your apps. A unique set of recipes will help you solve binomial and multinomial classification problems, and perform regression and hyperparameter optimization. To help you gain hands-on experience of concepts, the book features recipes for implementing convolutional neural networks (CNNs), recurrent neural networks (RNNs), and Long short-term memory (LSTMs) networks, as well as sequence-to-sequence models and reinforcement learning. You'll then learn about high-performance computation using GPUs, along with learning about parallel computation capabilities in R. Later, you'll explore libraries, such as MXNet, that are designed for GPU computing and state-of-the-art DL. Finally, you'll discover how to solve different problems in NLP, object detection, and action identification, before understanding how to use pre-trained models in DL apps.
By the end of this book, you'll have comprehensive knowledge of DL and DL packages, and be able to develop effective solutions for different DL problems.
What you will learn
- Work with different datasets for image classification using CNNs
- Apply transfer learning to solve complex computer vision problems
- Use RNNs and their variants such as LSTMs and Gated Recurrent Units (GRUs) for sequence data generation and classification
- Implement autoencoders for DL tasks such as dimensionality reduction, denoising, and image colorization
- Build deep generative models to create photorealistic images using GANs and VAEs
- Use MXNet to accelerate the training of DL models through distributed computing
Who this book is for
This deep learning book is for data scientists, machine learning practitioners, deep learning researchers and AI enthusiasts who want to learn key tasks in deep learning domains using a recipe-based approach. A strong understanding of machine learning and working knowledge of the R programming language is mandatory.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
Understanding Neural Networks and Deep Neural Networks
- Setting up the environment
- Implementing neural networks with Keras
- TensorFlow Estimator API
- TensorFlow Core API
- Implementing a single-layer neural network
- Training your first deep neural network
Setting up the environment
Getting ready
How to do it...
- Go to Anaconda Navigator from the Start menu.
- Click on Environments.
- Create a new environment and name it. Make sure that both the Python and R options are selected, as shown in the following screenshot:

- Install the keras library in R using the following command in RStudio or by using the Terminal of the conda environment created in the previous step:
install.packages("keras") - Install keras with the tensorflow backend.
install_keras(method = c("auto", "virtualenv", "conda"), conda = "auto", version = "default", tensorflow = "default", extra_packages = c("tensorflow-hub"))
- Ensure that you have met all the installation prerequisites, including installing the CUDA and cuDNN libraries.
- Set the tensorflow argument's value to gpu in the install_keras() function:
install_keras(tensorflow = "gpu")
How it works...
There's more...
Table of contents
- Title Page
- Copyright and Credits
- Dedication
- About Packt
- Foreword
- Contributors
- Preface
- Understanding Neural Networks and Deep Neural Networks
- Working with Convolutional Neural Networks
- Recurrent Neural Networks in Action
- Implementing Autoencoders with Keras
- Deep Generative Models
- Handling Big Data Using Large-Scale Deep Learning
- Working with Text and Audio for NLP
- Deep Learning for Computer Vision
- Implementing Reinforcement Learning
- Other Books You May Enjoy