June 2018
Intermediate to advanced
436 pages
10h 33m
English
First, we create a MultiLayerNetwork using the preceding MultiLayerConfiguration. Then we initialize the network and start the training on the training set:
MultiLayerNetwork model = new MultiLayerNetwork(MLPconf);model.init();log.info("Train model....");for( int i=0; i<numEpochs; i++ ){ model.fit(trainingDataIt); }
In the preceding code block, we start training the model by invoking the model.fit() on the training set (trainingDataIt in our case). Now we will discuss how we prepared the training and test set. Well, for reading the training set or test set that are in an inappropriate format (features are numeric and labels are integers), I have created a method called readCSVDataset():
private static DataSetIterator readCSVDataset(String ...
Read now
Unlock full access