Class IterDeltaAccuracyUnderTolerance

java.lang.Object
opennlp.tools.monitoring.IterDeltaAccuracyUnderTolerance
All Implemented Interfaces:
Predicate<Double>, opennlp.tools.monitoring.StopCriteria<Double>

public class IterDeltaAccuracyUnderTolerance extends Object implements opennlp.tools.monitoring.StopCriteria<Double>
A StopCriteria implementation to identify whether the absolute difference between the training accuracy of current and previous iteration is under the defined tolerance.
  • Field Details

  • Constructor Details

    • IterDeltaAccuracyUnderTolerance

      public IterDeltaAccuracyUnderTolerance(opennlp.tools.util.Parameters trainingParameters)
  • Method Details

    • getMessageIfSatisfied

      public String getMessageIfSatisfied()
      Specified by:
      getMessageIfSatisfied in interface opennlp.tools.monitoring.StopCriteria<Double>
    • test

      public boolean test(Double deltaAccuracy)
      Specified by:
      test in interface Predicate<Double>