public final class MinErrorChangeCondition extends Object implements StopCondition
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_MIN_ERROR_CHANGE |
Constructor and Description |
---|
MinErrorChangeCondition(GradientDescent algorithm)
Creates a new stop condition using default minimal error change value.
|
MinErrorChangeCondition(GradientDescent algorithm,
double minErrorChange)
Creates a new stop condition.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isNotSatisfied()
Returns
true is this condition is not satisfied. |
boolean |
isSatisfied()
Returns
true is this condition is satisfied. |
String |
toString() |
public static final double DEFAULT_MIN_ERROR_CHANGE
public MinErrorChangeCondition(GradientDescent algorithm, double minErrorChange)
algorithm
- The algorithm which should be monitored.minErrorChange
- The minimal error change in two consequential
iterationspublic MinErrorChangeCondition(GradientDescent algorithm)
algorithm
- The algorithm which should be monitored.public boolean isSatisfied()
StopCondition
true
is this condition is satisfied.isSatisfied
in interface StopCondition
true
- if this condition is satisfied false
- otherwise public boolean isNotSatisfied()
StopCondition
true
is this condition is not satisfied.isNotSatisfied
in interface StopCondition
true
- if this condition is not satisfied false
- otherwise Copyright © 2012. All Rights Reserved.