This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
log.info("Reload model ... ") | |
val confFromJson = MultiLayerConfiguration.fromJson(FileUtils.readFileToString(new File(conf_json))) | |
val dis = new DataInputStream(new FileInputStream(coefficient_bin)) | |
val reloadParams = Nd4j.read(dis) | |
dis.close() | |
val model = new MultiLayerNetwork(confFromJson) | |
model.init() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val conf: MultiLayerConfiguration = new NeuralNetConfiguration.Builder() | |
.regularization(true).l2(2e-6) | |
.seed(luckyseed) | |
.iterations(20) | |
.list(3) | |
... | |
.build(); | |
val iter: DataSetIterator = new GDataSetIteratorTrain(...) |
NewerOlder