Class TimeIterationListener
- java.lang.Object
-
- org.deeplearning4j.optimize.api.BaseTrainingListener
-
- org.deeplearning4j.optimize.listeners.TimeIterationListener
-
- All Implemented Interfaces:
Serializable
,TrainingListener
public class TimeIterationListener extends BaseTrainingListener implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TimeIterationListener(int iterationCount)
ConstructorTimeIterationListener(int frequency, int iterationCount)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
iterationDone(Model model, int iteration, int epoch)
Event listener for each iteration.-
Methods inherited from class org.deeplearning4j.optimize.api.BaseTrainingListener
onBackwardPass, onEpochEnd, onEpochStart, onForwardPass, onForwardPass, onGradientCalculation
-
-
-
-
Constructor Detail
-
TimeIterationListener
public TimeIterationListener(int iterationCount)
Constructor- Parameters:
iterationCount
- The global number of iteration for training (all epochs)
-
TimeIterationListener
public TimeIterationListener(int frequency, int iterationCount)
Constructor- Parameters:
frequency
- frequency with which to print the remaining timeiterationCount
- The global number of iteration for training (all epochs)
-
-
Method Detail
-
iterationDone
public void iterationDone(Model model, int iteration, int epoch)
Description copied from interface:TrainingListener
Event listener for each iteration. Called once, after each parameter update has ocurred while training the network- Specified by:
iterationDone
in interfaceTrainingListener
- Overrides:
iterationDone
in classBaseTrainingListener
- Parameters:
model
- the model iteratingiteration
- the iteration
-
-