@Immutable @Shareable public class IterationCountStoppingCondition extends java.lang.Object implements StoppingCondition, java.io.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.
|
java.lang.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
public java.lang.String toString()
toString
in class java.lang.Object