Listeners
Training listeners — ScoreIterationListener, PerformanceListener, EvaluativeListener, CheckpointListener, and custom listeners
Attaching Listeners
import org.deeplearning4j.optimize.listeners.ScoreIterationListener;
import org.deeplearning4j.optimize.listeners.PerformanceListener;
MultiLayerNetwork model = new MultiLayerNetwork(conf);
model.init();
// One listener
model.setListeners(new ScoreIterationListener(10));
// Multiple listeners at once
model.setListeners(
new ScoreIterationListener(10),
new PerformanceListener(10, true)
);
// Add to a ComputationGraph the same way
ComputationGraph graph = new ComputationGraph(graphConf);
graph.init();
graph.setListeners(new ScoreIterationListener(1));ScoreIterationListener
PerformanceListener
EvaluativeListener
CheckpointListener
CheckpointListener Builder Reference
Method
Description
Restoring from a Checkpoint
CollectScoresIterationListener
TimeIterationListener
ComposableIterationListener
ParamAndGradientIterationListener
Custom Listeners
Method
When called
API Reference
Class
Package
Last updated
Was this helpful?