public class EpochListener extends TrainingListener
Constructor and Description |
---|
EpochListener() |
Modifier and Type | Method and Description |
---|---|
int |
getN() |
java.lang.String |
globalInfo()
Returns a string describing this search method
|
boolean |
isIntermediateEvaluationsEnabled() |
void |
log(java.lang.String msg)
Log a message
|
void |
onEpochEnd(org.deeplearning4j.nn.api.Model model) |
void |
setIntermediateEvaluationsEnabled(boolean intermediateEvaluationsEnabled) |
void |
setN(int evaluateEveryNEpochs) |
getOptions, init, iterationDone, listOptions, setOptions
onBackwardPass, onEpochStart, onForwardPass, onForwardPass, onGradientCalculation
public void onEpochEnd(org.deeplearning4j.nn.api.Model model)
onEpochEnd
in interface org.deeplearning4j.optimize.api.TrainingListener
onEpochEnd
in class org.deeplearning4j.optimize.api.BaseTrainingListener
public void log(java.lang.String msg)
TrainingListener
log
in class TrainingListener
msg
- Messagepublic int getN()
@OptionMetadata(displayName="evaluate every N epochs", description="Evaluate every N epochs (default = 5).", commandLineParamName="n", commandLineParamSynopsis="-n <int>", displayOrder=0) public void setN(int evaluateEveryNEpochs)
@OptionMetadata(displayName="enable intermediate evaluations", description="Enable intermediate evaluations (default = true).", commandLineParamName="eval", commandLineParamSynopsis="-eval <boolean>", displayOrder=0) public boolean isIntermediateEvaluationsEnabled()
public void setIntermediateEvaluationsEnabled(boolean intermediateEvaluationsEnabled)
public java.lang.String globalInfo()