1 write to ColumnInformation
Microsoft.ML.AutoML (1)
ColumnInference\ColumnInferenceApi.cs (1)
103ColumnInformation = ColumnInformationUtil.BuildColumnInfo(purposeResults)
35 references to ColumnInformation
Microsoft.ML.AutoML.Tests (33)
AutoFeaturizerTests.cs (1)
111var pipeline = context.Auto().Featurizer(trainData, columnInference.ColumnInformation);
AutoFitTests.cs (3)
348.Execute(trainDataset, testDataset, columnInference.ColumnInformation); 371.Execute(trainData, 5, columnInference.ColumnInformation); 400.Execute(trainData, columnInference.ColumnInformation);
ColumnInferenceTests.cs (29)
64Assert.Equal("hours-per-week", result.ColumnInformation.LabelColumnName); 75Assert.Equal(DefaultColumnNames.Label, result.ColumnInformation.LabelColumnName); 99Assert.Single(result.ColumnInformation.NumericColumnNames); 100Assert.Equal("Bool", result.ColumnInformation.NumericColumnNames.First()); 101Assert.Equal(DefaultColumnNames.Label, result.ColumnInformation.LabelColumnName); 129Assert.Single(result.ColumnInformation.CategoricalColumnNames); 130Assert.Empty(result.ColumnInformation.TextColumnNames); 144Assert.Single(result.ColumnInformation.TextColumnNames); 145Assert.Equal("Username", result.ColumnInformation.TextColumnNames.First()); 146Assert.Equal(DefaultColumnNames.Label, result.ColumnInformation.LabelColumnName); 163Assert.Equal(DefaultColumnNames.Label, result.ColumnInformation.LabelColumnName); 164Assert.Equal(DefaultColumnNames.Weight, result.ColumnInformation.ExampleWeightColumnName); 165Assert.Equal(DefaultColumnNames.User, result.ColumnInformation.UserIdColumnName); 166Assert.Equal(DefaultColumnNames.Item, result.ColumnInformation.ItemIdColumnName); 167Assert.Equal(3, result.ColumnInformation.NumericColumnNames.Count()); 180Assert.Equal(DefaultColumnNames.Label, result.ColumnInformation.LabelColumnName); 181Assert.Equal(DefaultColumnNames.Weight, result.ColumnInformation.ExampleWeightColumnName); 182Assert.Single(result.ColumnInformation.NumericColumnNames); 183Assert.Equal(DefaultColumnNames.Features, result.ColumnInformation.NumericColumnNames.First()); 194Assert.Equal(DatasetUtil.MlNetGeneratedRegressionLabel, result.ColumnInformation.LabelColumnName); 195Assert.Single(result.ColumnInformation.NumericColumnNames); 196Assert.Equal(DefaultColumnNames.Features, result.ColumnInformation.NumericColumnNames.First()); 197Assert.Null(result.ColumnInformation.ExampleWeightColumnName); 225Assert.NotNull(result.ColumnInformation.LabelColumnName); 226Assert.Single(result.ColumnInformation.TextColumnNames); 227Assert.Single(result.ColumnInformation.CategoricalColumnNames); 229Assert.Equal("id", result.ColumnInformation.LabelColumnName); 230Assert.Equal("description", result.ColumnInformation.TextColumnNames.First()); 231Assert.Equal("animal", result.ColumnInformation.CategoricalColumnNames.First());
Microsoft.ML.CodeGenerator (2)
Utils.cs (2)
55col => col.Name != columnInference.ColumnInformation.LabelColumnName && 56!columnInference.ColumnInformation.IgnoredColumnNames.Contains(col.Name));