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