2 writes to LabelIndex
Microsoft.ML.Data (2)
Evaluators\EvaluatorBase.cs (2)
488if (!string.IsNullOrEmpty(LabelCol) && !schema.TryGetColumnIndex(LabelCol, out LabelIndex)) 504if (!string.IsNullOrEmpty(LabelCol) && !schema.TryGetColumnIndex(LabelCol, out LabelIndex))
23 references to LabelIndex
Microsoft.ML.Data (23)
Evaluators\BinaryClassifierEvaluator.cs (4)
1141activeOutput(LogLossCol) && (col == _probIndex || col == LabelIndex) || 1150Host.Assert(LabelIndex >= 0); 1163RowCursorUtils.GetLabelGetter(input, LabelIndex) : nanGetter; 1264var t = schema[(int)LabelIndex].Type;
Evaluators\MulticlassClassificationEvaluator.cs (4)
698Host.Assert(LabelIndex >= 0); 704col == LabelIndex && activeOutput(LogLossCol) || 724var labelGetter = activeCols(LogLossCol) ? RowCursorUtils.GetLabelGetter(input, LabelIndex) : 863var labelType = schema[LabelIndex].Type;
Evaluators\MultiOutputRegressionEvaluator.cs (7)
443(activeOutput(LabelOutput) && col == LabelIndex) || 446(col == ScoreIndex || col == LabelIndex); 462Host.Assert(LabelIndex >= 0); 473? RowCursorUtils.GetVecGetterAs<float>(NumberDataViewType.Single, input, LabelIndex) 549var t = schema[LabelIndex].Type as VectorDataViewType; 551throw Host.ExceptSchemaMismatch(nameof(schema), "label", LabelCol, "known-size vector of Single or Double", schema[LabelIndex].Type.ToString()); 555builder.AddSlotNames(t.Size, CreateSlotNamesGetter(schema, LabelIndex, labelType.Size, "True"));
Evaluators\QuantileRegressionEvaluator.cs (4)
348col => (activeOutput(L1Col) || activeOutput(L2Col)) && (col == ScoreIndex || col == LabelIndex); 382Host.Assert(LabelIndex >= 0); 393var labelGetter = activeCols(L1Col) || activeCols(L2Col) ? RowCursorUtils.GetLabelGetter(input, LabelIndex) : nanGetter; 447var t = schema[(int)LabelIndex].Type;
Evaluators\RegressionEvaluator.cs (4)
258col => (activeOutput(L1Col) || activeOutput(L2Col)) && (col == ScoreIndex || col == LabelIndex); 271Host.Assert(LabelIndex >= 0); 281var labelGetter = activeCols(L1Col) || activeCols(L2Col) ? RowCursorUtils.GetLabelGetter(input, LabelIndex) : nan; 328var t = schema[(int)LabelIndex].Type;