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:
Serializable
- Enclosing class:
- EarlyStoppingListener
Thrown when training is stopped early, the message will contain the reason why it is stopped
early.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEarlyStoppedException(int stopEpoch, String message) Constructs anEarlyStoppingListener.EarlyStoppedExceptionwith the specified message and epoch. -
Method Summary
Modifier and TypeMethodDescriptionintGets 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
-
Constructor Details
-
EarlyStoppedException
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
-
-
Method Details
-
getStopEpoch
public int getStopEpoch()Gets the epoch at which training was stopped early.- Returns:
- the epoch at which training was stopped early.
-