Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Advanced Deep Learning with R

You're reading from   Advanced Deep Learning with R Become an expert at designing, building, and improving advanced neural network models using R

Arrow left icon
Product type Paperback
Published in Dec 2019
Publisher Packt
ISBN-13 9781789538779
Length 352 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Bharatendra Rai Bharatendra Rai
Author Profile Icon Bharatendra Rai
Bharatendra Rai
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Preface 1. Section 1: Revisiting Deep Learning Basics
2. Revisiting Deep Learning Architecture and Techniques FREE CHAPTER 3. Section 2: Deep Learning for Prediction and Classification
4. Deep Neural Networks for Multi-Class Classification 5. Deep Neural Networks for Regression 6. Section 3: Deep Learning for Computer Vision
7. Image Classification and Recognition 8. Image Classification Using Convolutional Neural Networks 9. Applying Autoencoder Neural Networks Using Keras 10. Image Classification for Small Data Using Transfer Learning 11. Creating New Images Using Generative Adversarial Networks 12. Section 4: Deep Learning for Natural Language Processing
13. Deep Networks for Text Classification 14. Text Classification Using Recurrent Neural Networks 15. Text classification Using Long Short-Term Memory Network 16. Text Classification Using Convolutional Recurrent Neural Networks 17. Section 5: The Road Ahead
18. Tips, Tricks, and the Road Ahead 19. Other Books You May Enjoy

Working with the CIFAR10 dataset

For illustrating the use of pretrained models with new data, we will make use of the CIFAR10 dataset. CIFAR stands for Canadian Institute For Advanced Research, and 10 refers to the 10 categories of images that are contained in the data. The CIFAR10 dataset is part of the Keras library and the code for obtaining it is as follows:

# CIFAR10 data
data <- dataset_cifar10()
str(data)
OUTPUT
List of 2
$ train:List of 2
..$ x: int [1:50000, 1:32, 1:32, 1:3] 59 154 255 28 170 159 164 28 134 125 ...
..$ y: int [1:50000, 1] 6 9 9 4 1 1 2 7 8 3 ...
$ test :List of 2
..$ x: int [1:10000, 1:32, 1:32, 1:3] 158 235 158 155 65 179 160 83 23 217 ...
..$ y: num [1:10000, 1] 3 8 8 0 6 6 1 6 3 1 ...

In the preceding code, we can observe the following:

  • We can read the dataset using the dataset_cifar10() function.
  • The structure of the data shows that there are...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at ₹800/month. Cancel anytime