Interface EarlyStoppingListener<T extends Model>
-
public interface EarlyStoppingListener<T extends Model>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonCompletion(EarlyStoppingResult<T> esResult)Method that is called at the end of early stopping trainingvoidonEpoch(int epochNum, double score, EarlyStoppingConfiguration<T> esConfig, T net)Method that is called at the end of each epoch completed during early stopping trainingvoidonStart(EarlyStoppingConfiguration<T> esConfig, T net)Method to be called when early stopping training is first started
-
-
-
Method Detail
-
onStart
void onStart(EarlyStoppingConfiguration<T> esConfig, T net)
Method to be called when early stopping training is first started
-
onEpoch
void onEpoch(int epochNum, double score, EarlyStoppingConfiguration<T> esConfig, T net)Method that is called at the end of each epoch completed during early stopping training- Parameters:
epochNum- The number of the epoch just completed (starting at 0)score- The score calculatedesConfig- Configurationnet- Network (current)
-
onCompletion
void onCompletion(EarlyStoppingResult<T> esResult)
Method that is called at the end of early stopping training- Parameters:
esResult- The early stopping result. Provides details of why early stopping training was terminated, etc
-
-