Class EarlyStoppingListener.EarlyStoppedException

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    EarlyStoppingListener

    public static class EarlyStoppingListener.EarlyStoppedException
    extends java.lang.RuntimeException
    Thrown when training is stopped early, the message will contain the reason why it is stopped early.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getStopEpoch()
      Gets the epoch at which training was stopped early.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • EarlyStoppedException

        public EarlyStoppedException​(int stopEpoch,
                                     java.lang.String message)
        Constructs an EarlyStoppingListener.EarlyStoppedException with the specified message and epoch.
        Parameters:
        stopEpoch - the epoch at which training was stopped early
        message - the message/reason why training was stopped early
    • Method Detail

      • getStopEpoch

        public int getStopEpoch()
        Gets the epoch at which training was stopped early.
        Returns:
        the epoch at which training was stopped early.