Getting ready

For this recipe, you will require R (the rbm and ggplot2 packages) and the MNIST dataset. The MNIST dataset can be downloaded from the TensorFlow dataset library. The dataset consists of handwritten images of 28 x 28 pixels. It has 55,000 training examples and 10,000 test examples. It can be downloaded from the tensorflow library using the following script:

library(tensorflow) 
datasets <- tf$contrib$learn$datasets
mnist <- datasets$mnist$read_data_sets("MNIST-data", one_hot = TRUE)
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset