1 write to ValidationMetrics
Microsoft.ML.AutoML (1)
API\RunDetails\RunDetail.cs (1)
60ValidationMetrics = metrics;
29 references to ValidationMetrics
Microsoft.ML.AutoML (5)
Utils\BestResultUtil.cs (5)
49results = results.Where(r => r.ValidationMetrics != null); 51var scores = results.Select(r => metricsAgent.GetScore(r.ValidationMetrics)); 75results = results.Where(r => r.ValidationMetrics != null); 83orderedResults = indexedValues.OrderByDescending(t => metricsAgent.GetScore(t.Item1.ValidationMetrics)); 88orderedResults = indexedValues.OrderBy(t => metricsAgent.GetScore(t.Item1.ValidationMetrics));
Microsoft.ML.AutoML.Samples (5)
AutoFit\BinaryClassificationExperiment.cs (1)
35PrintMetrics(bestRun.ValidationMetrics);
AutoFit\MulticlassClassificationExperiment.cs (1)
36PrintMetrics(bestRun.ValidationMetrics);
AutoFit\RankingExperiment.cs (1)
44PrintMetrics(bestRun.ValidationMetrics);
AutoFit\RecommendationExperiment.cs (1)
48PrintMetrics(bestRun.ValidationMetrics);
AutoFit\RegressionExperiment.cs (1)
36PrintMetrics(bestRun.ValidationMetrics);
Microsoft.ML.AutoML.Tests (19)
AutoFitTests.cs (17)
61Assert.True(result.BestRun.ValidationMetrics.Accuracy > 0.70); 88result.BestRun.ValidationMetrics.Accuracy.Should().BeGreaterOrEqualTo(0.7); 115Assert.True(result.BestRun.ValidationMetrics.Accuracy > 0.70); 175Assert.True(result.BestRun.ValidationMetrics.RSquared > 0.70); 236Assert.True(result.BestRun.ValidationMetrics.RSquared > 0.70); 245Assert.True(result.BestRun.ValidationMetrics.RSquared > 0.70); 320Assert.True(result.BestRun.ValidationMetrics.MicroAccuracy >= 0.7); 350result.BestRun.ValidationMetrics.MicroAccuracy.Should().BeGreaterThan(0.1); 402Assert.InRange(result.BestRun.ValidationMetrics.MicroAccuracy, 0.1, 0.9); 455Assert.Equal(10, bestRun.ValidationMetrics.DiscountedCumulativeGains.Count); 456Assert.Equal(10, bestRun.ValidationMetrics.NormalizedDiscountedCumulativeGains.Count); 458Assert.NotNull(bestRun.ValidationMetrics); 459Assert.True(bestRun.ValidationMetrics.NormalizedDiscountedCumulativeGains.Last() > 0.4); 460Assert.True(bestRun.ValidationMetrics.DiscountedCumulativeGains.Last() > 19); 542Assert.NotNull(bestRun.ValidationMetrics); 543Assert.True(experimentResult.RunDetails.Max(i => i?.ValidationMetrics?.RSquared * i?.ValidationMetrics?.RSquared) > 0.5);
Utils\TaskAgnosticIterationResult.cs (2)
51: this(runDetail, runDetail.ValidationMetrics, primaryMetricName) 62: this(runDetail, runDetail.ValidationMetrics, primaryMetricName)