ImageClassificationTrainer.EarlyStopping.ShouldStop Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- currentMetrics
- ImageClassificationTrainer.TrainMetrics