117 references to Mean
Microsoft.ML.Samples (16)
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportance.cs (2)
53feature => Math.Abs(feature.AreaUnderRocCurve.Mean)) 64auc[i].Mean,
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportanceLoadFromDisk.cs (2)
52feature => Math.Abs(feature.AreaUnderRocCurve.Mean)) 63auc[i].Mean,
Dynamic\Trainers\MulticlassClassification\PermutationFeatureImportance.cs (2)
55.OrderByDescending(feature => Math.Abs(feature.MicroAccuracy.Mean)) 68microAccuracy[i].Mean,
Dynamic\Trainers\MulticlassClassification\PermutationFeatureImportanceLoadFromDisk.cs (2)
63.OrderByDescending(feature => Math.Abs(feature.MicroAccuracy.Mean)) 76microAccuracy[i].Mean,
Dynamic\Trainers\Ranking\PermutationFeatureImportance.cs (2)
57feature.NormalizedDiscountedCumulativeGains[0].Mean)) 69ndcg[i][0].Mean,
Dynamic\Trainers\Ranking\PermutationFeatureImportanceLoadFromDisk.cs (2)
64feature.NormalizedDiscountedCumulativeGains[0].Mean)) 76ndcg[i][0].Mean,
Dynamic\Trainers\Regression\PermutationFeatureImportance.cs (2)
59feature.RootMeanSquaredError.Mean)) 74rmse[i].Mean,
Dynamic\Trainers\Regression\PermutationFeatureImportanceLoadFromDisk.cs (2)
66feature.RootMeanSquaredError.Mean)) 81rmse[i].Mean,
Microsoft.ML.Tests (101)
PermutationFeatureImportanceTests.cs (100)
81Assert.Equal(3, MinDeltaIndex(pfi, m => m.MeanAbsoluteError.Mean)); 82Assert.Equal(1, MaxDeltaIndex(pfi, m => m.MeanAbsoluteError.Mean)); 84Assert.Equal(3, MinDeltaIndex(pfi, m => m.MeanSquaredError.Mean)); 85Assert.Equal(1, MaxDeltaIndex(pfi, m => m.MeanSquaredError.Mean)); 87Assert.Equal(3, MinDeltaIndex(pfi, m => m.RootMeanSquaredError.Mean)); 88Assert.Equal(1, MaxDeltaIndex(pfi, m => m.RootMeanSquaredError.Mean)); 91Assert.Equal(1, MinDeltaIndex(pfi, m => m.RSquared.Mean)); 92Assert.Equal(3, MaxDeltaIndex(pfi, m => m.RSquared.Mean)); 155Assert.Equal(3, MinDeltaIndex(pfi, m => m.MeanAbsoluteError.Mean)); 156Assert.Equal(1, MaxDeltaIndex(pfi, m => m.MeanAbsoluteError.Mean)); 158Assert.Equal(3, MinDeltaIndex(pfi, m => m.MeanSquaredError.Mean)); 159Assert.Equal(1, MaxDeltaIndex(pfi, m => m.MeanSquaredError.Mean)); 161Assert.Equal(3, MinDeltaIndex(pfi, m => m.RootMeanSquaredError.Mean)); 162Assert.Equal(1, MaxDeltaIndex(pfi, m => m.RootMeanSquaredError.Mean)); 165Assert.Equal(1, MinDeltaIndex(pfi, m => m.RSquared.Mean)); 166Assert.Equal(3, MaxDeltaIndex(pfi, m => m.RSquared.Mean)); 316Assert.Equal(2, MinDeltaIndex(results, m => m.MeanAbsoluteError.Mean)); 317Assert.Equal(5, MaxDeltaIndex(results, m => m.MeanAbsoluteError.Mean)); 319Assert.Equal(2, MinDeltaIndex(results, m => m.MeanSquaredError.Mean)); 320Assert.Equal(5, MaxDeltaIndex(results, m => m.MeanSquaredError.Mean)); 322Assert.Equal(2, MinDeltaIndex(results, m => m.RootMeanSquaredError.Mean)); 323Assert.Equal(5, MaxDeltaIndex(results, m => m.RootMeanSquaredError.Mean)); 326Assert.Equal(2, MaxDeltaIndex(results, m => m.RSquared.Mean)); 327Assert.Equal(5, MinDeltaIndex(results, m => m.RSquared.Mean)); 387Assert.Equal(3, MaxDeltaIndex(pfi, m => m.AreaUnderRocCurve.Mean)); 388Assert.Equal(1, MinDeltaIndex(pfi, m => m.AreaUnderRocCurve.Mean)); 389Assert.Equal(3, MaxDeltaIndex(pfi, m => m.Accuracy.Mean)); 390Assert.Equal(1, MinDeltaIndex(pfi, m => m.Accuracy.Mean)); 391Assert.Equal(3, MaxDeltaIndex(pfi, m => m.PositivePrecision.Mean)); 392Assert.Equal(1, MinDeltaIndex(pfi, m => m.PositivePrecision.Mean)); 393Assert.Equal(3, MaxDeltaIndex(pfi, m => m.PositiveRecall.Mean)); 394Assert.Equal(1, MinDeltaIndex(pfi, m => m.PositiveRecall.Mean)); 395Assert.Equal(3, MaxDeltaIndex(pfi, m => m.NegativePrecision.Mean)); 396Assert.Equal(1, MinDeltaIndex(pfi, m => m.NegativePrecision.Mean)); 397Assert.Equal(0, MaxDeltaIndex(pfi, m => m.NegativeRecall.Mean)); 398Assert.Equal(1, MinDeltaIndex(pfi, m => m.NegativeRecall.Mean)); 399Assert.Equal(3, MaxDeltaIndex(pfi, m => m.F1Score.Mean)); 400Assert.Equal(1, MinDeltaIndex(pfi, m => m.F1Score.Mean)); 401Assert.Equal(3, MaxDeltaIndex(pfi, m => m.AreaUnderPrecisionRecallCurve.Mean)); 402Assert.Equal(1, MinDeltaIndex(pfi, m => m.AreaUnderPrecisionRecallCurve.Mean)); 464Assert.Equal(2, MaxDeltaIndex(pfi, m => m.AreaUnderRocCurve.Mean)); 465Assert.Equal(5, MinDeltaIndex(pfi, m => m.AreaUnderRocCurve.Mean)); 466Assert.Equal(2, MaxDeltaIndex(pfi, m => m.Accuracy.Mean)); 467Assert.Equal(5, MinDeltaIndex(pfi, m => m.Accuracy.Mean)); 468Assert.Equal(2, MaxDeltaIndex(pfi, m => m.PositivePrecision.Mean)); 469Assert.Equal(5, MinDeltaIndex(pfi, m => m.PositivePrecision.Mean)); 470Assert.Equal(2, MaxDeltaIndex(pfi, m => m.PositiveRecall.Mean)); 471Assert.Equal(5, MinDeltaIndex(pfi, m => m.PositiveRecall.Mean)); 472Assert.Equal(2, MaxDeltaIndex(pfi, m => m.NegativePrecision.Mean)); 473Assert.Equal(5, MinDeltaIndex(pfi, m => m.NegativePrecision.Mean)); 474Assert.Equal(2, MaxDeltaIndex(pfi, m => m.NegativeRecall.Mean)); 475Assert.Equal(5, MinDeltaIndex(pfi, m => m.NegativeRecall.Mean)); 476Assert.Equal(2, MaxDeltaIndex(pfi, m => m.F1Score.Mean)); 477Assert.Equal(5, MinDeltaIndex(pfi, m => m.F1Score.Mean)); 478Assert.Equal(2, MaxDeltaIndex(pfi, m => m.AreaUnderPrecisionRecallCurve.Mean)); 479Assert.Equal(5, MinDeltaIndex(pfi, m => m.AreaUnderPrecisionRecallCurve.Mean)); 496Assert.Equal(7, MaxDeltaIndex(pfi, m => m.AreaUnderRocCurve.Mean)); 497Assert.Equal(1, MinDeltaIndex(pfi, m => m.AreaUnderRocCurve.Mean)); 498Assert.Equal(3, MaxDeltaIndex(pfi, m => m.Accuracy.Mean)); 499Assert.Equal(1, MinDeltaIndex(pfi, m => m.Accuracy.Mean)); 500Assert.Equal(3, MaxDeltaIndex(pfi, m => m.PositivePrecision.Mean)); 501Assert.Equal(1, MinDeltaIndex(pfi, m => m.PositivePrecision.Mean)); 502Assert.Equal(3, MaxDeltaIndex(pfi, m => m.PositiveRecall.Mean)); 503Assert.Equal(1, MinDeltaIndex(pfi, m => m.PositiveRecall.Mean)); 504Assert.Equal(3, MaxDeltaIndex(pfi, m => m.NegativePrecision.Mean)); 505Assert.Equal(1, MinDeltaIndex(pfi, m => m.NegativePrecision.Mean)); 506Assert.Equal(2, MaxDeltaIndex(pfi, m => m.NegativeRecall.Mean)); 507Assert.Equal(1, MinDeltaIndex(pfi, m => m.NegativeRecall.Mean)); 508Assert.Equal(3, MaxDeltaIndex(pfi, m => m.F1Score.Mean)); 509Assert.Equal(1, MinDeltaIndex(pfi, m => m.F1Score.Mean)); 510Assert.Equal(7, MaxDeltaIndex(pfi, m => m.AreaUnderPrecisionRecallCurve.Mean)); 511Assert.Equal(1, MinDeltaIndex(pfi, m => m.AreaUnderPrecisionRecallCurve.Mean)); 568Assert.Equal(3, MaxDeltaIndex(pfi, m => m.MicroAccuracy.Mean)); 569Assert.Equal(1, MinDeltaIndex(pfi, m => m.MicroAccuracy.Mean)); 570Assert.Equal(3, MaxDeltaIndex(pfi, m => m.MacroAccuracy.Mean)); 571Assert.Equal(1, MinDeltaIndex(pfi, m => m.MacroAccuracy.Mean)); 572Assert.Equal(3, MaxDeltaIndex(pfi, m => m.LogLossReduction.Mean)); 573Assert.Equal(1, MinDeltaIndex(pfi, m => m.LogLossReduction.Mean)); 577Assert.Equal(1, MaxDeltaIndex(pfi, m => m.LogLoss.Mean)); 578Assert.Equal(3, MinDeltaIndex(pfi, m => m.LogLoss.Mean)); 581Assert.True(MaxDeltaIndex(pfi, m => m.PerClassLogLoss[i].Mean) == 1); 582Assert.True(MinDeltaIndex(pfi, m => m.PerClassLogLoss[i].Mean) == 3); 645Assert.Equal(2, MaxDeltaIndex(pfi, m => m.MicroAccuracy.Mean)); 646Assert.Equal(5, MinDeltaIndex(pfi, m => m.MicroAccuracy.Mean)); 647Assert.Equal(2, MaxDeltaIndex(pfi, m => m.MacroAccuracy.Mean)); 648Assert.Equal(5, MinDeltaIndex(pfi, m => m.MacroAccuracy.Mean)); 649Assert.Equal(2, MaxDeltaIndex(pfi, m => m.LogLossReduction.Mean)); 650Assert.Equal(5, MinDeltaIndex(pfi, m => m.LogLossReduction.Mean)); 654Assert.Equal(5, MaxDeltaIndex(pfi, m => m.LogLoss.Mean)); 655Assert.Equal(2, MinDeltaIndex(pfi, m => m.LogLoss.Mean)); 658Assert.Equal(5, MaxDeltaIndex(pfi, m => m.PerClassLogLoss[i].Mean)); 659Assert.Equal(2, MinDeltaIndex(pfi, m => m.PerClassLogLoss[i].Mean)); 723Assert.Equal(0, MaxDeltaIndex(pfi, m => m.DiscountedCumulativeGains[i].Mean)); 724Assert.Equal(1, MinDeltaIndex(pfi, m => m.DiscountedCumulativeGains[i].Mean)); 728Assert.Equal(0, MaxDeltaIndex(pfi, m => m.NormalizedDiscountedCumulativeGains[i].Mean)); 729Assert.Equal(1, MinDeltaIndex(pfi, m => m.NormalizedDiscountedCumulativeGains[i].Mean)); 794Assert.Equal(2, MaxDeltaIndex(pfi, m => m.DiscountedCumulativeGains[i].Mean)); 795Assert.Equal(5, MinDeltaIndex(pfi, m => m.DiscountedCumulativeGains[i].Mean)); 799Assert.Equal(2, MaxDeltaIndex(pfi, m => m.NormalizedDiscountedCumulativeGains[i].Mean)); 800Assert.Equal(5, MinDeltaIndex(pfi, m => m.NormalizedDiscountedCumulativeGains[i].Mean));
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (1)
363Console.WriteLine($"Feature {i}: Difference in RMS - {featureImportance[i].RootMeanSquaredError.Mean}");