Interface Stop


  • public interface Stop
    Interface to allow early completion of a long running task. Note that while Stop will finish the process (for example in a reduced number of iterations),Cancellation will cancel the learning process, throwing an CancellationException.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean getCanStop()
      When true, indicates that the algorithm supports early stopping.
      boolean getStop()
      When true, indicates to the algorithm to complete early.
      void setStop​(boolean value)
      When true, indicates to the algorithm to complete early.
    • Method Detail

      • getStop

        boolean getStop()
        When true, indicates to the algorithm to complete early.
      • setStop

        void setStop​(boolean value)
        When true, indicates to the algorithm to complete early.
      • getCanStop

        boolean getCanStop()
        When true, indicates that the algorithm supports early stopping.