2 writes to ScoreIndex
Microsoft.ML.Data (2)
Evaluators\EvaluatorBase.cs (2)
490
if (!schema.TryGetColumnIndex(ScoreCol, out
ScoreIndex
))
506
if (!schema.TryGetColumnIndex(ScoreCol, out
ScoreIndex
))
31 references to ScoreIndex
Microsoft.ML.Data (31)
Evaluators\BinaryClassifierEvaluator.cs (6)
1142
activeOutput(AssignedCol) && (_useRaw && col ==
ScoreIndex
|| !_useRaw && col == _probIndex);
1145
return col => activeOutput(AssignedCol) && col ==
ScoreIndex
;
1151
Host.Assert(
ScoreIndex
>= 0);
1170
if (activeCols(AssignedCol) &&
ScoreIndex
>= 0)
1171
scoreGetter = input.GetGetter<Single>(input.Schema[
ScoreIndex
]);
1268
t = schema[
ScoreIndex
].Type;
Evaluators\ClusteringEvaluator.cs (3)
645
col ==
ScoreIndex
&&
663
var scoreGetter = input.GetGetter<VBuffer<Single>>(input.Schema[
ScoreIndex
]);
755
var type = schema[(int)
ScoreIndex
].Type;
Evaluators\MulticlassClassificationEvaluator.cs (7)
622
if (schema[
ScoreIndex
].HasSlotNames(_numClasses))
625
schema[(int)
ScoreIndex
].Annotations.GetValue(AnnotationUtils.Kinds.SlotNames, ref classNames);
697
Host.Assert(
ScoreIndex
>= 0);
705
col ==
ScoreIndex
&& (activeOutput(AssignedCol) || activeOutput(SortedScoresCol) ||
726
var scoreGetter = input.GetGetter<VBuffer<float>>(input.Schema[
ScoreIndex
]);
860
var scoreType = schema[
ScoreIndex
].Type as VectorDataViewType;
862
throw Host.ExceptSchemaMismatch(nameof(schema), "score", ScoreCol, "Vector of two or more items of type Single", schema[
ScoreIndex
].Type.ToString());
Evaluators\MultiOutputRegressionEvaluator.cs (7)
444
(activeOutput(ScoreOutput) && col ==
ScoreIndex
) ||
446
(col ==
ScoreIndex
|| col == LabelIndex);
463
Host.Assert(
ScoreIndex
>= 0);
476
? input.GetGetter<VBuffer<float>>(input.Schema[
ScoreIndex
])
558
t = schema[
ScoreIndex
].Type as VectorDataViewType;
560
throw Host.ExceptSchemaMismatch(nameof(schema), "score", ScoreCol, "known-size vector of Single", schema[
ScoreIndex
].Type.ToString());
563
builder.AddSlotNames(t.Size, CreateSlotNamesGetter(schema,
ScoreIndex
, scoreType.Size, "Predicted"));
Evaluators\QuantileRegressionEvaluator.cs (4)
348
col => (activeOutput(L1Col) || activeOutput(L2Col)) && (col ==
ScoreIndex
|| col == LabelIndex);
383
Host.Assert(
ScoreIndex
>= 0);
396
scoreGetter = input.GetGetter<VBuffer<float>>(input.Schema[
ScoreIndex
]);
451
VectorDataViewType scoreType = schema[
ScoreIndex
].Type as VectorDataViewType;
Evaluators\RegressionEvaluator.cs (4)
258
col => (activeOutput(L1Col) || activeOutput(L2Col)) && (col ==
ScoreIndex
|| col == LabelIndex);
272
Host.Assert(
ScoreIndex
>= 0);
284
scoreGetter = input.GetGetter<float>(input.Schema[
ScoreIndex
]);
332
t = schema[
ScoreIndex
].Type;