Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
R Deep Learning Essentials. - Second Edition

You're reading from  R Deep Learning Essentials. - Second Edition

Product type Book
Published in Aug 2018
Publisher Packt
ISBN-13 9781788992893
Pages 378 pages
Edition 2nd Edition
Languages
Authors (2):
Mark Hodnett Mark Hodnett
Profile icon Mark Hodnett
Joshua F. Wiley Joshua F. Wiley
Profile icon Joshua F. Wiley
View More author details

Table of Contents (13) Chapters

Preface Getting Started with Deep Learning Training a Prediction Model Deep Learning Fundamentals Training Deep Prediction Models Image Classification Using Convolutional Neural Networks Tuning and Optimizing Models Natural Language Processing Using Deep Learning Deep Learning Models Using TensorFlow in R Anomaly Detection and Recommendation Systems Running Deep Learning Models in the Cloud The Next Level in Deep Learning Other Books You May Enjoy

Training an auto-encoder in R

In this section, we are going to train an auto-encoder in R and show you that it can be used as a dimensionality reduction technique. We will compare it with the approach we took in Chapter 2, Training a Prediction Model, where we used PCA to find the principal components in the image data. In that example, we used PCA and found that 23 factors was sufficient to explain 50% of the variance in the data. We built a neural network model using just these 23 factors to classify a dataset with either 5 or 6. We got 97.86% accuracy in that example.

We are going to follow a similar process in this example, and we will use the MINST dataset again. The following code from Chapter8/encoder.R loads the data. We will use half the data for training an auto-encoder and the other half will be used to build a classification model to evaluate how good the auto-encoder...

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 $15.99/month. Cancel anytime}