1 write to LabelColumn
Microsoft.ML.StandardTrainers (1)
Standard\MulticlassClassification\MetaMulticlassTrainer.cs (1)
71
LabelColumn
= new SchemaShape.Column(labelColumn, SchemaShape.Column.VectorKind.Scalar, NumberDataViewType.UInt32, true);
12 references to LabelColumn
Microsoft.ML.StandardTrainers (12)
Standard\MulticlassClassification\MetaMulticlassTrainer.cs (8)
145
if (
LabelColumn
.IsValid)
147
if (!inputSchema.TryFindColumn(
LabelColumn
.Name, out var labelCol))
148
throw Host.ExceptSchemaMismatch(nameof(labelCol), "label",
LabelColumn
.Name);
150
if (!
LabelColumn
.IsCompatibleWith(labelCol))
151
throw Host.ExceptSchemaMismatch(nameof(inputSchema), "label",
LabelColumn
.Name,
LabelColumn
.GetTypeString(), labelCol.GetTypeString());
166
if (
LabelColumn
.IsValid)
168
bool success = inputSchema.TryFindColumn(
LabelColumn
.Name, out var inputLabelCol);
Standard\MulticlassClassification\OneVersusAllTrainer.cs (2)
213
roles[0] = new KeyValuePair<CR, string>(new CR(DefaultColumnNames.Label),
LabelColumn
.Name);
237
return new MulticlassPredictionTransformer<OneVersusAllModelParameters>(Host, OneVersusAllModelParameters.Create(Host, _options.UseProbabilities, predictors), input.Schema, featureColumn,
LabelColumn
.Name);
Standard\MulticlassClassification\PairwiseCouplingTrainer.cs (2)
191
roles[0] = new KeyValuePair<CR, string>(new CR(DefaultColumnNames.Label),
LabelColumn
.Name);
220
return new MulticlassPredictionTransformer<PairwiseCouplingModelParameters>(Host, new PairwiseCouplingModelParameters(Host, predictors), input.Schema, featureColumn,
LabelColumn
.Name);