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, setOptionsonBackwardPass, onEpochStart, onForwardPass, onForwardPass, onGradientCalculationpublic void onEpochEnd(org.deeplearning4j.nn.api.Model model)
onEpochEnd in interface org.deeplearning4j.optimize.api.TrainingListeneronEpochEnd in class org.deeplearning4j.optimize.api.BaseTrainingListenerpublic void log(java.lang.String msg)
TrainingListenerlog in class TrainingListenermsg - 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()