Using data augmentation to increase the training data

We are going to apply data augmentation to the MNIST dataset that we used in previous chapters. The code for this section is in Chapter6/explore.Rmd if you want to follow along. In Chapter 5, Image Classification Using Convolutional Neural Networks, we plotted some examples from the MNIST data, so we won't repeat the code again. It is included in the code file, and you can also refer back to the image in Chapter 5Image Classification Using Convolutional Neural Networks:

Figure 6.3: The first 9 images in the MNIST dataset

We described data augmentation as creating new data from an existing ...

Get Deep Learning with R for Beginners now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.