Share via


ImageClassificationTrainer.EarlyStopping.ShouldStop Method

Definition

To be called at the end of every epoch to check if training should stop. For increasing metric(eg.: Accuracy), if metric stops increasing, stop training if value of metric doesn't increase within 'patience' number of epochs. For decreasing metric(eg.: Loss), stop training if value of metric doesn't decrease within 'patience' number of epochs. Any change in the value of metric of less than 'minDelta' is not considered a change.

public bool ShouldStop (Microsoft.ML.Vision.ImageClassificationTrainer.TrainMetrics currentMetrics);
member this.ShouldStop : Microsoft.ML.Vision.ImageClassificationTrainer.TrainMetrics -> bool
Public Function ShouldStop (currentMetrics As ImageClassificationTrainer.TrainMetrics) As Boolean

Parameters

Returns

Applies to