Package ai.djl.training.listener
Class EarlyStoppingListener.EarlyStoppedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- ai.djl.training.listener.EarlyStoppingListener.EarlyStoppedException
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- EarlyStoppingListener
public static class EarlyStoppingListener.EarlyStoppedException extends java.lang.RuntimeExceptionThrown when training is stopped early, the message will contain the reason why it is stopped early.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EarlyStoppedException(int stopEpoch, java.lang.String message)Constructs anEarlyStoppingListener.EarlyStoppedExceptionwith the specified message and epoch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetStopEpoch()Gets the epoch at which training was stopped early.
-
-
-
Constructor Detail
-
EarlyStoppedException
public EarlyStoppedException(int stopEpoch, java.lang.String message)Constructs anEarlyStoppingListener.EarlyStoppedExceptionwith the specified message and epoch.- Parameters:
stopEpoch- the epoch at which training was stopped earlymessage- the message/reason why training was stopped early
-
-