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