64 writes to LabelColumnName
Microsoft.ML.AutoML (20)
API\BinaryClassificationExperiment.cs (3)
251
LabelColumnName
= labelColumnName,
261
LabelColumnName
= labelColumnName,
307
LabelColumnName
= labelColumnName,
API\ColumnInference.cs (1)
129
LabelColumnName
= DefaultColumnNames.Label;
API\ExperimentBase.cs (6)
75
LabelColumnName
= labelColumnName,
84
LabelColumnName
= labelColumnName,
162
new ColumnInformation() {
LabelColumnName
= labelColumnName, GroupIdColumnName = DefaultColumnNames.GroupId } :
163
new ColumnInformation() {
LabelColumnName
= labelColumnName };
255
LabelColumnName
= labelColumnName,
262
LabelColumnName
= labelColumnName,
API\MulticlassClassificationExperiment.cs (3)
239
LabelColumnName
= labelColumnName,
249
LabelColumnName
= labelColumnName,
297
LabelColumnName
= labelColumnName,
API\RegressionExperiment.cs (3)
233
LabelColumnName
= labelColumnName,
243
LabelColumnName
= labelColumnName,
290
LabelColumnName
= labelColumnName,
ColumnInference\ColumnInferenceApi.cs (2)
26
var columnInfo = new ColumnInformation() {
LabelColumnName
= typeInference.Columns[labelColumnIndex].SuggestedName };
34
var columnInfo = new ColumnInformation() {
LabelColumnName
= labelColumn };
ColumnInference\ColumnInformationUtil.cs (1)
81
columnInfo.
LabelColumnName
= column.name;
TrainerExtensions\TrainerExtensionUtil.cs (1)
212
columnInfo.
LabelColumnName
= props[LabelColumn] as string;
Microsoft.ML.AutoML.Samples (2)
AutoFit\RankingExperiment.cs (1)
35
LabelColumnName
= LabelColumnName,
AutoFit\RecommendationExperiment.cs (1)
38
LabelColumnName
= LabelColumnName,
Microsoft.ML.AutoML.Tests (31)
AutoFitTests.cs (10)
60
.Execute(trainData, new ColumnInformation() {
LabelColumnName
= DatasetUtil.UciAdultLabel });
87
.Execute(trainData, new ColumnInformation() {
LabelColumnName
= DatasetUtil.UciAdultLabel });
439
LabelColumnName
= labelColumnName,
445
LabelColumnName
= labelColumnName,
493
LabelColumnName
= labelColumnName,
535
LabelColumnName
= labelColumnName,
603
new ColumnInformation() {
LabelColumnName
= DatasetUtil.UciAdultLabel })
610
new ColumnInformation() {
LabelColumnName
= DatasetUtil.UciAdultLabel })
617
new ColumnInformation() {
LabelColumnName
= DatasetUtil.UciAdultLabel })
655
.Execute(trainData, new ColumnInformation() {
LabelColumnName
= DatasetUtil.UciAdultLabel });
ColumnInferenceTests.cs (5)
111
LabelColumnName
= "col0",
156
LabelColumnName
= DefaultColumnNames.Label,
176
LabelColumnName
= DefaultColumnNames.Label,
189
var columnInfo = new ColumnInformation() {
LabelColumnName
= DatasetUtil.MlNetGeneratedRegressionLabel };
221
inputColumnInformation.
LabelColumnName
= @"id";
ColumnInformationUtilTests.cs (2)
24
LabelColumnName
= "Label",
55
LabelColumnName
= "Label",
GetNextPipelineTests.cs (2)
28
var columns = DatasetColumnInfoUtil.GetDatasetColumnInfo(context, uciAdult, new ColumnInformation() {
LabelColumnName
= DatasetUtil.UciAdultLabel });
53
var columns = DatasetColumnInfoUtil.GetDatasetColumnInfo(context, uciAdult, new ColumnInformation() {
LabelColumnName
= DatasetUtil.UciAdultLabel });
TrainerExtensionsTests.cs (3)
203
LabelColumnName
= "L",
236
var pipelineNode = new AveragedPerceptronBinaryExtension().CreatePipelineNode(null, new ColumnInformation() {
LabelColumnName
= "L" });
288
LabelColumnName
= "L",
UserInputValidationTests.cs (8)
37
new ColumnInformation() {
LabelColumnName
= null }, null, TaskKind.Regression));
49
new ColumnInformation() {
LabelColumnName
= columnName }, null, task));
63
new ColumnInformation() {
LabelColumnName
= mistypedColumnName }, null, task));
119
new ColumnInformation() {
LabelColumnName
= "0" }, validData, task));
142
new ColumnInformation() {
LabelColumnName
= "0" }, validData, task));
165
new ColumnInformation() {
LabelColumnName
= "0" }, validData, TaskKind.Regression));
404
new ColumnInformation() {
LabelColumnName
= mistypedColumnName }, null, task));
419
new ColumnInformation() {
LabelColumnName
= mistypedColumnName }, null, task));
Utils\TaskAgnosticAutoFit.cs (1)
48
var columnInformation = new ColumnInformation() {
LabelColumnName
= label };
Microsoft.ML.CodeGenerator.Tests (11)
ApprovalTests\ConsoleCodeGeneratorTests.cs (9)
587
LabelColumnName
= "Label",
627
ColumnInformation = new ColumnInformation() {
LabelColumnName
= "Label" }
664
ColumnInformation = new ColumnInformation() {
LabelColumnName
= "Label" }
713
ColumnInformation = new ColumnInformation() {
LabelColumnName
= "Label" }
755
ColumnInformation = new ColumnInformation() {
LabelColumnName
= "Label", GroupIdColumnName = "GroupId" }
802
ColumnInformation = new ColumnInformation() {
LabelColumnName
= "Label" }
846
ColumnInformation = new ColumnInformation() {
LabelColumnName
= "Label" }
1014
ColumnInformation = new ColumnInformation() {
LabelColumnName
= "Label" }
1123
ColumnInformation = new ColumnInformation() {
LabelColumnName
= "Label" }
UtilTest.cs (2)
136
LabelColumnName
= "Label"
171
LabelColumnName
= "Label_col_0"
87 references to LabelColumnName
Microsoft.ML.AutoML (77)
API\BinaryClassificationExperiment.cs (5)
166
var label = columnInformation.
LabelColumnName
;
216
var label = columnInformation.
LabelColumnName
;
270
var label = columnInformation.
LabelColumnName
;
335
.Append(Context.Auto().BinaryClassification(labelColumnName: columnInformation.
LabelColumnName
, useSdcaLogisticRegression: useSdca, useFastTree: useFastTree, useLgbm: useLgbm, useLbfgsLogisticRegression: uselbfgs, useFastForest: useFastForest, featureColumnName: Features));
340
.Append(Context.Auto().BinaryClassification(labelColumnName: columnInformation.
LabelColumnName
, useSdcaLogisticRegression: useSdca, useFastTree: useFastTree, useLgbm: useLgbm, useLbfgsLogisticRegression: uselbfgs, useFastForest: useFastForest, featureColumnName: Features));
API\ExperimentBase.cs (3)
290
var runner = new TrainValidateRunner<TMetrics>(Context, trainData, validationData, columnInfo.GroupIdColumnName, columnInfo.
LabelColumnName
, MetricsAgent,
310
preprocessorTransforms, columnInfo.GroupIdColumnName, columnInfo.
LabelColumnName
, _logger);
337
preprocessorTransforms, columnInfo.GroupIdColumnName, columnInfo.
LabelColumnName
, OptimizingMetricInfo, _logger);
API\MulticlassClassificationExperiment.cs (4)
150
var label = columnInformation.
LabelColumnName
;
201
var label = columnInformation.
LabelColumnName
;
258
var label = columnInformation.
LabelColumnName
;
328
var label = columnInformation.
LabelColumnName
;
API\RegressionExperiment.cs (4)
147
var label = columnInformation.
LabelColumnName
;
196
var label = columnInformation.
LabelColumnName
;
252
var label = columnInformation.
LabelColumnName
;
311
var label = columnInformation.
LabelColumnName
;
ColumnInference\ColumnInferenceApi.cs (1)
43
var typeInference = InferColumnTypes(context, sample, splitInference, hasHeader, null, columnInfo.
LabelColumnName
);
ColumnInference\ColumnInformationUtil.cs (2)
14
if (columnName == columnInfo.
LabelColumnName
)
131
AddStringToListIfNotNull(columnNames, columnInformation.
LabelColumnName
);
TrainerExtensions\BinaryTrainerExtensions.cs (18)
34
options.LabelColumnName = columnInfo.
LabelColumnName
;
38
options = TrainerExtensionUtil.CreateOptions<AveragedPerceptronTrainer.Options>(sweepParams, columnInfo.
LabelColumnName
);
60
columnInfo.
LabelColumnName
, additionalProperties: additionalProperties);
74
var options = TrainerExtensionUtil.CreateOptions<FastForestBinaryTrainer.Options>(sweepParams, columnInfo.
LabelColumnName
);
82
columnInfo.
LabelColumnName
, columnInfo.ExampleWeightColumnName);
96
var options = TrainerExtensionUtil.CreateOptions<FastTreeBinaryTrainer.Options>(sweepParams, columnInfo.
LabelColumnName
);
104
columnInfo.
LabelColumnName
, columnInfo.ExampleWeightColumnName);
125
columnInfo.
LabelColumnName
, columnInfo.ExampleWeightColumnName, columnInfo.GroupIdColumnName);
139
var options = TrainerExtensionUtil.CreateOptions<LinearSvmTrainer.Options>(sweepParams, columnInfo.
LabelColumnName
);
146
columnInfo.
LabelColumnName
);
160
var options = TrainerExtensionUtil.CreateOptions<SdcaLogisticRegressionBinaryTrainer.Options>(sweepParams, columnInfo.
LabelColumnName
);
167
columnInfo.
LabelColumnName
);
181
var options = TrainerExtensionUtil.CreateOptions<LbfgsLogisticRegressionBinaryTrainer.Options>(sweepParams, columnInfo.
LabelColumnName
);
189
columnInfo.
LabelColumnName
, columnInfo.ExampleWeightColumnName);
203
var options = TrainerExtensionUtil.CreateOptions<SgdCalibratedTrainer.Options>(sweepParams, columnInfo.
LabelColumnName
);
211
columnInfo.
LabelColumnName
, columnInfo.ExampleWeightColumnName);
225
var options = TrainerExtensionUtil.CreateOptions<SymbolicSgdLogisticRegressionBinaryTrainer.Options>(sweepParams, columnInfo.
LabelColumnName
);
232
columnInfo.
LabelColumnName
);
TrainerExtensions\MultiTrainerExtensions.cs (14)
29
return mlContext.MulticlassClassification.Trainers.OneVersusAll(binaryTrainer, labelColumnName: columnInfo.
LabelColumnName
);
51
return mlContext.MulticlassClassification.Trainers.OneVersusAll(binaryTrainer, labelColumnName: columnInfo.
LabelColumnName
);
77
columnInfo.
LabelColumnName
, columnInfo.ExampleWeightColumnName, columnInfo.GroupIdColumnName);
94
return mlContext.MulticlassClassification.Trainers.OneVersusAll(binaryTrainer, labelColumnName: columnInfo.
LabelColumnName
);
113
var options = TrainerExtensionUtil.CreateOptions<SdcaMaximumEntropyMulticlassTrainer.Options>(sweepParams, columnInfo.
LabelColumnName
);
120
columnInfo.
LabelColumnName
);
137
return mlContext.MulticlassClassification.Trainers.OneVersusAll(binaryTrainer, labelColumnName: columnInfo.
LabelColumnName
);
159
return mlContext.MulticlassClassification.Trainers.OneVersusAll(binaryTrainer, labelColumnName: columnInfo.
LabelColumnName
);
181
return mlContext.MulticlassClassification.Trainers.OneVersusAll(binaryTrainer, labelColumnName: columnInfo.
LabelColumnName
);
203
return mlContext.MulticlassClassification.Trainers.OneVersusAll(binaryTrainer, labelColumnName: columnInfo.
LabelColumnName
);
222
var options = TrainerExtensionUtil.CreateOptions<LbfgsMaximumEntropyMulticlassTrainer.Options>(sweepParams, columnInfo.
LabelColumnName
);
230
columnInfo.
LabelColumnName
, columnInfo.ExampleWeightColumnName);
241
var options = TrainerExtensionUtil.CreateOptions<Options>(null, columnInfo.
LabelColumnName
);
248
columnInfo.
LabelColumnName
, null);
TrainerExtensions\RankingTrainerExtensions.cs (3)
33
columnInfo.
LabelColumnName
, columnInfo.ExampleWeightColumnName, columnInfo.GroupIdColumnName);
47
var options = TrainerExtensionUtil.CreateOptions<FastTreeRankingTrainer.Options>(sweepParams, columnInfo.
LabelColumnName
);
57
columnInfo.
LabelColumnName
, additionalProperties: property);
TrainerExtensions\RecommendationTrainerExtensions.cs (2)
18
options.LabelColumnName = columnInfo.
LabelColumnName
;
30
return TrainerExtensionUtil.BuildPipelineNode(TrainerExtensionCatalog.GetTrainerName(this), sweepParams, columnInfo.
LabelColumnName
, additionalProperties: property);
TrainerExtensions\RegressionTrainerExtensions.cs (15)
25
var options = TrainerExtensionUtil.CreateOptions<FastForestRegressionTrainer.Options>(sweepParams, columnInfo.
LabelColumnName
);
33
columnInfo.
LabelColumnName
, columnInfo.ExampleWeightColumnName);
47
var options = TrainerExtensionUtil.CreateOptions<FastTreeRegressionTrainer.Options>(sweepParams, columnInfo.
LabelColumnName
);
55
columnInfo.
LabelColumnName
, columnInfo.ExampleWeightColumnName);
69
var options = TrainerExtensionUtil.CreateOptions<FastTreeTweedieTrainer.Options>(sweepParams, columnInfo.
LabelColumnName
);
77
columnInfo.
LabelColumnName
, columnInfo.ExampleWeightColumnName);
98
columnInfo.
LabelColumnName
, columnInfo.ExampleWeightColumnName, columnInfo.GroupIdColumnName);
112
var options = TrainerExtensionUtil.CreateOptions<OnlineGradientDescentTrainer.Options>(sweepParams, columnInfo.
LabelColumnName
);
119
columnInfo.
LabelColumnName
);
133
var options = TrainerExtensionUtil.CreateOptions<OlsTrainer.Options>(sweepParams, columnInfo.
LabelColumnName
);
141
columnInfo.
LabelColumnName
, columnInfo.ExampleWeightColumnName);
155
var options = TrainerExtensionUtil.CreateOptions<LbfgsPoissonRegressionTrainer.Options>(sweepParams, columnInfo.
LabelColumnName
);
163
columnInfo.
LabelColumnName
, columnInfo.ExampleWeightColumnName);
177
var options = TrainerExtensionUtil.CreateOptions<SdcaRegressionTrainer.Options>(sweepParams, columnInfo.
LabelColumnName
);
184
columnInfo.
LabelColumnName
);
TrainerExtensions\TrainerExtensionUtil.cs (2)
87
options.LabelColumnName = columnInfo.
LabelColumnName
;
109
{ LabelColumn, columnInfo.
LabelColumnName
}
Utils\UserInputValidationUtil.cs (4)
88
if ((column.Name != columnInformation.
LabelColumnName
&&
108
ValidateTrainDataColumn(trainData, columnInformation.
LabelColumnName
, LabelColumnPurposeName, GetAllowedLabelTypes(task));
125
ValidateLabelColumn(columnInformation.
LabelColumnName
);
134
allColumns.Add(columnInformation.
LabelColumnName
);
Microsoft.ML.AutoML.Tests (9)
ColumnInferenceTests.cs (9)
64
Assert.Equal("hours-per-week", result.ColumnInformation.
LabelColumnName
);
75
Assert.Equal(DefaultColumnNames.Label, result.ColumnInformation.
LabelColumnName
);
101
Assert.Equal(DefaultColumnNames.Label, result.ColumnInformation.
LabelColumnName
);
146
Assert.Equal(DefaultColumnNames.Label, result.ColumnInformation.
LabelColumnName
);
163
Assert.Equal(DefaultColumnNames.Label, result.ColumnInformation.
LabelColumnName
);
180
Assert.Equal(DefaultColumnNames.Label, result.ColumnInformation.
LabelColumnName
);
194
Assert.Equal(DatasetUtil.MlNetGeneratedRegressionLabel, result.ColumnInformation.
LabelColumnName
);
225
Assert.NotNull(result.ColumnInformation.
LabelColumnName
);
229
Assert.Equal("id", result.ColumnInformation.
LabelColumnName
);
Microsoft.ML.CodeGenerator (1)
Utils.cs (1)
55
col => col.Name != columnInference.ColumnInformation.
LabelColumnName
&&