2 writes to TopKAccuracyForAllK
Microsoft.ML.Data (2)
Evaluators\Metrics\MulticlassClassificationMetrics.cs (2)
128
TopKAccuracyForAllK
= RowCursorUtils.Fetch<VBuffer<double>>(host, overallResult, MulticlassClassificationEvaluator.AllTopKAccuracy).DenseValues().ToImmutableArray();
143
TopKAccuracyForAllK
= topKAccuracies;
7 references to TopKAccuracyForAllK
Microsoft.ML.AutoML (1)
Experiment\Runners\CrossValSummaryRunner.cs (1)
126
topKAccuracies: GetAverageOfNonNaNScoresInNestedEnumerable(newMetrics.Select(x => x.
TopKAccuracyForAllK
)),
Microsoft.ML.Data (2)
Evaluators\Metrics\MulticlassClassificationMetrics.cs (2)
80
public double TopKAccuracy =>
TopKAccuracyForAllK
?.LastOrDefault() ?? 0;
83
/// If positive, this indicates the K in <see cref="TopKAccuracy"/> and <see cref="
TopKAccuracyForAllK
"/>.
Microsoft.ML.Tests (2)
EvaluateTests.cs (2)
49
Assert.Equal(expectedTopKArray, metrics.
TopKAccuracyForAllK
);
66
var output2 = metrics2.
TopKAccuracyForAllK
.ToArray();
Microsoft.ML.Transforms (2)
PermutationFeatureImportanceExtensions.cs (2)
479
topKAccuracies: a?.
TopKAccuracyForAllK
?.Zip(b.
TopKAccuracyForAllK
, (a, b) => a - b)?.ToArray(),