How it works...

We officially target the DL4J version 1.0.0-beta 3 in this chapter. We used ModelSerializer to save the models to disk. If you use the new version, 1.0.0-beta 4, there is another recommended way to save the model by using the save() method offered by MultiLayerNetwork:

File locationToSave = new File("MyMultiLayerNetwork.zip");
model.save(locationToSave, saveUpdater);

Use saveUpdater = true if you want to train the network in the future.

..................Content has been hidden....................

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