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.