@Immutable @Shareable public class IterationCountStoppingCondition extends Object implements StoppingCondition, Serializable
Stop once the iteration count has reached a value.
Constructor and Description |
---|
IterationCountStoppingCondition(int niter)
Construct a new iteration count stopping condition.
|
Modifier and Type | Method and Description |
---|---|
int |
getIterationCount()
Get the number of iterations the stopper requires.
|
TrainingLoopController |
newLoop()
Create a controller for a new training loop.
|
String |
toString() |
@Inject public IterationCountStoppingCondition(@IterationCount int niter)
Construct a new iteration count stopping condition.
niter
- The number of iterations to run.public int getIterationCount()
Get the number of iterations the stopper requires.
public TrainingLoopController newLoop()
StoppingCondition
Create a controller for a new training loop.
newLoop
in interface StoppingCondition