2 writes to LabelCol
Microsoft.ML.Data (2)
Evaluators\EvaluatorBase.cs (2)
486
LabelCol
= labelCol;
503
LabelCol
= ctx.LoadStringOrNull();
18 references to LabelCol
Microsoft.ML.Data (18)
Evaluators\BinaryClassifierEvaluator.cs (2)
1262
Host.AssertNonEmpty(
LabelCol
);
1266
throw Host.ExceptSchemaMismatch(nameof(schema), "label",
LabelCol
, "Single, Double, Boolean or a Key with cardinality 2", t.ToString());
Evaluators\EvaluatorBase.cs (7)
488
if (!string.IsNullOrEmpty(
LabelCol
) && !schema.TryGetColumnIndex(
LabelCol
, out LabelIndex))
489
throw Host.ExceptSchemaMismatch(nameof(schema), "label",
LabelCol
);
504
if (!string.IsNullOrEmpty(
LabelCol
) && !schema.TryGetColumnIndex(
LabelCol
, out LabelIndex))
505
throw Host.ExceptSchemaMismatch(nameof(schema), "label",
LabelCol
);
522
ctx.SaveStringOrNull(
LabelCol
);
Evaluators\MulticlassClassificationEvaluator.cs (2)
858
Host.AssertNonEmpty(
LabelCol
);
865
throw Host.ExceptSchemaMismatch(nameof(schema), "label",
LabelCol
, "Single or Key", labelType.ToString());
Evaluators\MultiOutputRegressionEvaluator.cs (3)
452
infos[LabelOutput] = new DataViewSchema.DetachedColumn(
LabelCol
, _labelType, _labelMetadata);
547
Host.AssertNonEmpty(
LabelCol
);
551
throw Host.ExceptSchemaMismatch(nameof(schema), "label",
LabelCol
, "known-size vector of Single or Double", schema[LabelIndex].Type.ToString());
Evaluators\QuantileRegressionEvaluator.cs (2)
445
Host.AssertNonEmpty(
LabelCol
);
449
throw Host.ExceptSchemaMismatch(nameof(schema), "label",
LabelCol
, "Single", t.ToString());
Evaluators\RegressionEvaluator.cs (2)
326
Host.AssertNonEmpty(
LabelCol
);
330
throw Host.ExceptSchemaMismatch(nameof(schema), "label",
LabelCol
, "Single", t.ToString());