July 2017
Beginner to intermediate
715 pages
17h 3m
English
This example is adapted from http://deeplearning4j.org/deepautoencoder. We start with a try-catch block to handle errors that may crop up and with a few variable declarations. This example uses the Mnist (http://yann.lecun.com/exdb/mnist/) dataset, which is a set of images containing hand-written numbers. Each image consists of 28 by 28 pixels. An iterator is declared to access the data:
try { final int numberOfRows = 28; final int numberOfColumns = 28; int seed = 123; int numberOfIterations = 1; iterator = new MnistDataSetIterator( 1000, MnistDataFetcher.NUM_EXAMPLES, true); ... } catch (IOException ex) { // Handle exceptions }
Read now
Unlock full access