Interface ConvergenceObserver

    • Method Detail

      • getProgressEstimate

        double getProgressEstimate()
        Returns an estimate of training progress, which can be used to indicate how close the desired convergence is. The interpretation and range of the returned value can vary between subclasses. Typically, the return value approaches 0 as the model is converging. Should be called after an iteration, not in the middle of iteration.
      • isConverged

        boolean isConverged()
        Returns whether the trained model has converged. Depending on implementation, this can be based on one or several iterations of evaluating the verification set.
      • needStopTraining

        boolean needStopTraining()
        Returns whether the training has to be stopped after current iteration. This may mean that the model has converged, based on all score evaluations that were performed. Or the model may have failed to converge and another termination condition was reached.