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