@Immutable @Shareable public class IterationCountStoppingCondition extends Object implements StoppingCondition, Serializable
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)
niter
- The number of iterations to run.public int getIterationCount()
public TrainingLoopController newLoop()
StoppingCondition
newLoop
in interface StoppingCondition