12 references to EarlyStoppingMetric
Microsoft.ML.PerformanceTests (1)
ImageClassificationBench.cs (1)
88
EarlyStoppingCriteria = new ImageClassificationTrainer.EarlyStopping(minDelta: 0.001f, patience: 20, metric: ImageClassificationTrainer.
EarlyStoppingMetric
.Loss),
Microsoft.ML.Samples (1)
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
85
metric: ImageClassificationTrainer.
EarlyStoppingMetric
.Loss),
Microsoft.ML.Samples.GPU (1)
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
85
metric: ImageClassificationTrainer.
EarlyStoppingMetric
.Loss),
Microsoft.ML.TensorFlow.Tests (3)
TensorflowTests.cs (3)
1757
[InlineData(ImageClassificationTrainer.
EarlyStoppingMetric
.Accuracy)]
1758
[InlineData(ImageClassificationTrainer.
EarlyStoppingMetric
.Loss)]
1759
public void TensorFlowImageClassificationEarlyStopping(ImageClassificationTrainer.
EarlyStoppingMetric
earlyStoppingMetric)
Microsoft.ML.Vision (6)
ImageClassificationTrainer.cs (6)
225
private readonly
EarlyStoppingMetric
_metric;
248
public EarlyStopping(float minDelta = 0.01f, int patience = 20,
EarlyStoppingMetric
metric =
EarlyStoppingMetric
.Accuracy, bool checkIncreasing = true)
258
if (metric ==
EarlyStoppingMetric
.Accuracy)
260
else if (metric ==
EarlyStoppingMetric
.Loss)
277
float currentMetricValue = _metric ==
EarlyStoppingMetric
.Accuracy ? currentMetrics.Accuracy : currentMetrics.CrossEntropy;