6 instantiations of ColumnRole
Microsoft.ML.Core (1)
Data\RoleMappedSchema.cs (1)
108=> new ColumnRole(value);
Microsoft.ML.Data (2)
Commands\TrainCommand.cs (1)
525return customColumnArg.Select(kindName => new ColumnRole(kindName.Key).Bind(kindName.Value));
Evaluators\BinaryClassifierEvaluator.cs (1)
632var prob = schema.GetColumns(new RoleMappedSchema.ColumnRole(AnnotationUtils.Const.ScoreValueKind.Probability));
Microsoft.ML.FastTree (1)
GamModelParameters.cs (1)
684new RoleMappedSchema.ColumnRole(AnnotationUtils.Const.ScoreValueKind.Score).Bind(DefaultColumnNames.Score));
Microsoft.ML.StandardTrainers (2)
Standard\MulticlassClassification\OneVersusAllTrainer.cs (1)
213roles[0] = new KeyValuePair<CR, string>(new CR(DefaultColumnNames.Label), LabelColumn.Name);
Standard\MulticlassClassification\PairwiseCouplingTrainer.cs (1)
191roles[0] = new KeyValuePair<CR, string>(new CR(DefaultColumnNames.Label), LabelColumn.Name);
204 references to ColumnRole
Microsoft.ML.Core (58)
Data\AnnotationUtils.cs (1)
298public static void GetSlotNames(RoleMappedSchema schema, RoleMappedSchema.ColumnRole role, int vectorSize, ref VBuffer<ReadOnlyMemory<char>> slotNames)
Data\ISchemaBindableMapper.cs (1)
55IEnumerable<KeyValuePair<RoleMappedSchema.ColumnRole, string>> GetInputColumnRoles();
Data\RoleMappedSchema.cs (56)
34/// to make use of every defined mapping. Consuming components are also expected to ignore any <see cref="ColumnRole"/> 38/// <seealso cref="ColumnRole"/> 61public static ColumnRole Feature => FeatureString; 66public static ColumnRole Label => LabelString; 72public static ColumnRole Group => GroupString; 78public static ColumnRole Weight => WeightString; 84public static ColumnRole Name => NameString; 90public static ColumnRole FeatureContributions => FeatureContributionsString; 107public static implicit operator ColumnRole(string value) 117public KeyValuePair<ColumnRole, string> Bind(string name) 118=> new KeyValuePair<ColumnRole, string>(this, name); 121public static KeyValuePair<ColumnRole, string> CreatePair(ColumnRole role, string name) 122=> new KeyValuePair<ColumnRole, string>(role, name); 130/// The <see cref="ColumnRole.Feature"/> column, when there is exactly one (null otherwise). 135/// The <see cref="ColumnRole.Label"/> column, when there is exactly one (null otherwise). 140/// The <see cref="ColumnRole.Group"/> column, when there is exactly one (null otherwise). 145/// The <see cref="ColumnRole.Weight"/> column, when there is exactly one (null otherwise). 150/// The <see cref="ColumnRole.Name"/> column, when there is exactly one (null otherwise). 201private static void Add(Dictionary<string, List<DataViewSchema.Column>> map, ColumnRole role, DataViewSchema.Column column) 214private static Dictionary<string, List<DataViewSchema.Column>> MapFromNames(DataViewSchema schema, IEnumerable<KeyValuePair<ColumnRole, string>> roles, bool opt = false) 237public bool Has(ColumnRole role) 243public bool HasUnique(ColumnRole role) 249public bool HasMultiple(ColumnRole role) 256public IReadOnlyList<DataViewSchema.Column> GetColumns(ColumnRole role) 262public IEnumerable<KeyValuePair<ColumnRole, DataViewSchema.Column>> GetColumnRoles() 267yield return new KeyValuePair<ColumnRole, DataViewSchema.Column>(roleAndList.Key, info); 274public IEnumerable<KeyValuePair<ColumnRole, string>> GetColumnRoleNames() 279yield return new KeyValuePair<ColumnRole, string>(roleAndList.Key, info.Name); 287public IEnumerable<KeyValuePair<ColumnRole, string>> GetColumnRoleNames(ColumnRole role) 292yield return new KeyValuePair<ColumnRole, string>(role, info.Name); 303public DataViewSchema.Column GetUniqueColumn(ColumnRole role) 333public RoleMappedSchema(DataViewSchema schema, bool opt = false, params KeyValuePair<ColumnRole, string>[] roles) 348public RoleMappedSchema(DataViewSchema schema, IEnumerable<KeyValuePair<ColumnRole, string>> roles, bool opt = false) 354private static IEnumerable<KeyValuePair<ColumnRole, string>> PredefinedRolesHelper( 356IEnumerable<KeyValuePair<ColumnRole, string>> custom = null) 359yield return ColumnRole.Label.Bind(label); 361yield return ColumnRole.Feature.Bind(feature); 363yield return ColumnRole.Group.Bind(group); 365yield return ColumnRole.Weight.Bind(weight); 367yield return ColumnRole.Name.Bind(name); 380/// <param name="label">The column name that will be mapped to the <see cref="ColumnRole.Label"/> role</param> 381/// <param name="feature">The column name that will be mapped to the <see cref="ColumnRole.Feature"/> role</param> 382/// <param name="group">The column name that will be mapped to the <see cref="ColumnRole.Group"/> role</param> 383/// <param name="weight">The column name that will be mapped to the <see cref="ColumnRole.Weight"/> role</param> 384/// <param name="name">The column name that will be mapped to the <see cref="ColumnRole.Name"/> role</param> 391IEnumerable<KeyValuePair<RoleMappedSchema.ColumnRole, string>> custom = null, bool opt = false) 441public RoleMappedData(IDataView data, bool opt = false, params KeyValuePair<RoleMappedSchema.ColumnRole, string>[] roles) 456public RoleMappedData(IDataView data, IEnumerable<KeyValuePair<RoleMappedSchema.ColumnRole, string>> roles, bool opt = false) 466/// <param name="label">The column name that will be mapped to the <see cref="RoleMappedSchema.ColumnRole.Label"/> role</param> 467/// <param name="feature">The column name that will be mapped to the <see cref="RoleMappedSchema.ColumnRole.Feature"/> role</param> 468/// <param name="group">The column name that will be mapped to the <see cref="RoleMappedSchema.ColumnRole.Group"/> role</param> 469/// <param name="weight">The column name that will be mapped to the <see cref="RoleMappedSchema.ColumnRole.Weight"/> role</param> 470/// <param name="name">The column name that will be mapped to the <see cref="RoleMappedSchema.ColumnRole.Name"/> role</param> 477IEnumerable<KeyValuePair<RoleMappedSchema.ColumnRole, string>> custom = null, bool opt = false)
Microsoft.ML.Core.Tests (2)
UnitTests\TestEntryPoints.cs (2)
2184RoleMappedSchema.CreatePair(RoleMappedSchema.ColumnRole.Feature, "Features"), 2185RoleMappedSchema.CreatePair(RoleMappedSchema.ColumnRole.Label, "Label"));
Microsoft.ML.Data (60)
Commands\ScoreCommand.cs (1)
253IEnumerable<KeyValuePair<RoleMappedSchema.ColumnRole, string>> customColumns,
Commands\TrainCommand.cs (3)
25using ColumnRole = RoleMappedSchema.ColumnRole; 513public static IEnumerable<KeyValuePair<ColumnRole, string>> CheckAndGenerateCustomColumns(IExceptionContext ectx, KeyValuePair<string, string>[] customColumnArg) 518return Enumerable.Empty<KeyValuePair<ColumnRole, string>>();
DataLoadSave\TransformerChain.cs (7)
302roles.Where(x => x.Key.Value == RoleMappedSchema.ColumnRole.Feature.Value).First().Value); 306roles.Where(x => x.Key.Value == RoleMappedSchema.ColumnRole.Feature.Value).First().Value, 307roles.Where(x => x.Key.Value == RoleMappedSchema.ColumnRole.Label.Value).First().Value); 310roles.Where(x => x.Key.Value == RoleMappedSchema.ColumnRole.Feature.Value).First().Value); 313roles.Where(x => x.Key.Value == RoleMappedSchema.ColumnRole.Feature.Value).First().Value); 316roles.Where(x => x.Key.Value == RoleMappedSchema.ColumnRole.Feature.Value).First().Value); 319roles.Where(x => x.Key.Value == RoleMappedSchema.ColumnRole.Feature.Value).First().Value);
Deprecated\Instances\HeaderSchema.cs (5)
40schemaBuilder.AddColumn(RoleMappedSchema.ColumnRole.Feature.Value, _colType, metadataBuilder.ToAnnotations()); 309roles: RoleMappedSchema.ColumnRole.Feature.Bind(RoleMappedSchema.ColumnRole.Feature.Value)); 401roles: RoleMappedSchema.ColumnRole.Feature.Bind(RoleMappedSchema.ColumnRole.Feature.Value));
EntryPoints\InputBase.cs (1)
64Func<IEnumerable<KeyValuePair<RoleMappedSchema.ColumnRole, string>>> getCustom = null,
EntryPoints\PredictorModelImpl.cs (2)
23private readonly KeyValuePair<RoleMappedSchema.ColumnRole, string>[] _roleMappings; 60private PredictorModelImpl(TransformModel transformModel, IPredictor predictor, KeyValuePair<RoleMappedSchema.ColumnRole, string>[] roleMappings)
Evaluators\AnomalyDetectionEvaluator.cs (1)
597RoleMappedSchema.ColumnRole.Label.Bind(label),
Evaluators\BinaryClassifierEvaluator.cs (5)
819RoleMappedSchema.ColumnRole.Label.Bind(label), 867RoleMappedSchema.ColumnRole.Label.Bind(label), 947RoleMappedSchema.ColumnRole.Label.Bind(label), 993RoleMappedSchema.ColumnRole.Label.Bind(label), 1340private protected override IEnumerable<KeyValuePair<RoleMappedSchema.ColumnRole, string>> GetInputColumnRolesCore(RoleMappedSchema schema)
Evaluators\ClusteringEvaluator.cs (6)
70var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>(); 74roles.Add(RoleMappedSchema.ColumnRole.Label.Bind(label)); 77roles.Add(RoleMappedSchema.ColumnRole.Feature.Bind(features)); 801private protected override IEnumerable<KeyValuePair<RoleMappedSchema.ColumnRole, string>> GetInputColumnRolesCore(RoleMappedSchema schema) 805if (!col.Key.Equals(RoleMappedSchema.ColumnRole.Label)) 816yield return RoleMappedSchema.ColumnRole.Feature.Bind(feat);
Evaluators\MamlEvaluator.cs (7)
77internal static RoleMappedSchema.ColumnRole Strat = "Strat"; 114private protected IEnumerable<KeyValuePair<RoleMappedSchema.ColumnRole, string>> GetInputColumnRoles(RoleMappedSchema schema, bool needStrat = false, bool needName = false) 119? Enumerable.Empty<KeyValuePair<RoleMappedSchema.ColumnRole, string>>() 123roles = AnnotationUtils.Prepend(roles, RoleMappedSchema.ColumnRole.Name.Bind(schema.Name.Value.Name)); 134private protected virtual IEnumerable<KeyValuePair<RoleMappedSchema.ColumnRole, string>> GetInputColumnRolesCore(RoleMappedSchema schema) 143yield return RoleMappedSchema.ColumnRole.Label.Bind(label); 147yield return RoleMappedSchema.ColumnRole.Weight.Bind(weight);
Evaluators\MulticlassClassificationEvaluator.cs (1)
558RoleMappedSchema.ColumnRole.Label.Bind(label),
Evaluators\RankingEvaluator.cs (4)
260RoleMappedSchema.ColumnRole.Label.Bind(label), 261RoleMappedSchema.ColumnRole.Group.Bind(groupId), 893private protected override IEnumerable<KeyValuePair<RoleMappedSchema.ColumnRole, string>> GetInputColumnRolesCore(RoleMappedSchema schema) 897return cols.Prepend(RoleMappedSchema.ColumnRole.Group.Bind(groupIdCol));
Evaluators\RegressionEvaluator.cs (1)
180RoleMappedSchema.ColumnRole.Label.Bind(label),
Prediction\Calibrator.cs (1)
684public IEnumerable<KeyValuePair<RoleMappedSchema.ColumnRole, string>> GetInputColumnRoles()
Scorers\FeatureContributionCalculation.cs (2)
388public IEnumerable<KeyValuePair<RoleMappedSchema.ColumnRole, string>> GetInputColumnRoles() 390yield return RoleMappedSchema.ColumnRole.Feature.Bind(FeatureColumn.Name);
Scorers\GenericScorer.cs (1)
66IEnumerable<KeyValuePair<RoleMappedSchema.ColumnRole, string>> roles, string suffix, bool user = true)
Scorers\MulticlassClassificationScorer.cs (1)
344public IEnumerable<KeyValuePair<RoleMappedSchema.ColumnRole, string>> GetInputColumnRoles() => _mapper.GetInputColumnRoles();
Scorers\RowToRowScorerBase.cs (2)
380protected static KeyValuePair<RoleMappedSchema.ColumnRole, string>[] LoadBaseInfo( 394var columns = new KeyValuePair<RoleMappedSchema.ColumnRole, string>[count];
Scorers\SchemaBindablePredictorWrapper.cs (5)
228public IEnumerable<KeyValuePair<RoleMappedSchema.ColumnRole, string>> GetInputColumnRoles() 230yield return RoleMappedSchema.ColumnRole.Feature.Bind(InputRoleMappedSchema.Feature.Value.Name); 548public IEnumerable<KeyValuePair<RoleMappedSchema.ColumnRole, string>> GetInputColumnRoles() 550yield return (InputRoleMappedSchema.Feature.HasValue) ? RoleMappedSchema.ColumnRole.Feature.Bind(InputRoleMappedSchema.Feature?.Name) : RoleMappedSchema.ColumnRole.Label.Bind(InputRoleMappedSchema.Label?.Name);
Utilities\ComponentCreation.cs (1)
48string group = null, string weight = null, IEnumerable<KeyValuePair<RoleMappedSchema.ColumnRole, string>> custom = null)
Utilities\ModelFileUtils.cs (3)
17using ColumnRole = RoleMappedSchema.ColumnRole; 269public static IEnumerable<KeyValuePair<ColumnRole, string>> LoadRoleMappingsOrNull(IHostEnvironment env, Stream modelStream) 282public static IEnumerable<KeyValuePair<ColumnRole, string>> LoadRoleMappingsOrNull(IHostEnvironment env, RepositoryReader rep)
Microsoft.ML.Ensemble (5)
PipelineEnsemble.cs (1)
103public IEnumerable<KeyValuePair<RoleMappedSchema.ColumnRole, string>> GetInputColumnRoles()
Selector\SubModelSelector\BaseSubModelSelector.cs (4)
102private IEnumerable<KeyValuePair<RoleMappedSchema.ColumnRole, string>> GetColumnRoles( 108yield return RoleMappedSchema.CreatePair(RoleMappedSchema.ColumnRole.Label, testSchema.Label.Value.Name); 119yield return RoleMappedSchema.CreatePair(RoleMappedSchema.ColumnRole.Label, testSchema.Label.Value.Name); 125yield return RoleMappedSchema.CreatePair(RoleMappedSchema.ColumnRole.Label, testSchema.Label.Value.Name);
Microsoft.ML.EntryPoints (16)
CrossValidationMacro.cs (4)
366RoleMappedSchema.ColumnRole.Label.Bind(input.LabelColumn), 367RoleMappedSchema.ColumnRole.Weight.Bind(input.WeightColumn.Value), 368RoleMappedSchema.ColumnRole.Group.Bind(input.GroupColumn), 369RoleMappedSchema.ColumnRole.Name.Bind(input.NameColumn.Value))).ToArray(),
FeatureCombiner.cs (3)
28internal IEnumerable<KeyValuePair<RoleMappedSchema.ColumnRole, string>> GetRoles() 33yield return RoleMappedSchema.ColumnRole.Feature.Bind(col); 56var feats = rms.GetColumns(RoleMappedSchema.ColumnRole.Feature);
PermutationFeatureImportance.cs (9)
91var featureColumnName = roles.Where(x => x.Key.Value == RoleMappedSchema.ColumnRole.Feature.Value).First().Value; 92var labelColumnName = roles.Where(x => x.Key.Value == RoleMappedSchema.ColumnRole.Label.Value).First().Value; 148var featureColumnName = roles.Where(x => x.Key.Value == RoleMappedSchema.ColumnRole.Feature.Value).First().Value; 149var labelColumnName = roles.Where(x => x.Key.Value == RoleMappedSchema.ColumnRole.Label.Value).First().Value; 207var featureColumnName = roles.Where(x => x.Key.Value == RoleMappedSchema.ColumnRole.Feature.Value).First().Value; 208var labelColumnName = roles.Where(x => x.Key.Value == RoleMappedSchema.ColumnRole.Label.Value).First().Value; 259var featureColumnName = roles.Where(x => x.Key.Value == RoleMappedSchema.ColumnRole.Feature.Value).First().Value; 260var labelColumnName = roles.Where(x => x.Key.Value == RoleMappedSchema.ColumnRole.Label.Value).First().Value; 261var groupIdColumnName = roles.Where(x => x.Key.Value == RoleMappedSchema.ColumnRole.Group.Value).First().Value;
Microsoft.ML.FastTree (9)
FastTree.cs (2)
3151AnnotationUtils.GetSlotNames(schema, RoleMappedSchema.ColumnRole.Feature, NumFeatures, ref names); 3183AnnotationUtils.GetSlotNames(schema, RoleMappedSchema.ColumnRole.Feature, NumFeatures, ref names);
GamModelParameters.cs (2)
373AnnotationUtils.GetSlotNames(schema, RoleMappedSchema.ColumnRole.Feature, _numInputFeatures, ref names); 683RoleMappedSchema.ColumnRole.Label.Bind(DefaultColumnNames.Label),
TreeEnsembleFeaturizationTransformer.cs (3)
64var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>(); 65roles.Add(new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RoleMappedSchema.ColumnRole.Feature, _featureDetachedColumn.Name));
TreeEnsembleFeaturizer.cs (2)
357public IEnumerable<KeyValuePair<RoleMappedSchema.ColumnRole, string>> GetInputColumnRoles() 359yield return RoleMappedSchema.ColumnRole.Feature.Bind(FeatureColumn.Name);
Microsoft.ML.Mkl.Components (1)
OlsLinearRegression.cs (1)
902AnnotationUtils.GetSlotNames(schema, RoleMappedSchema.ColumnRole.Feature, Weight.Length, ref names);
Microsoft.ML.Predictor.Tests (8)
TestIniModels.cs (8)
536new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RoleMappedSchema.ColumnRole.Feature, "Features"), 537new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RoleMappedSchema.ColumnRole.Label, "Label")); 575new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RoleMappedSchema.ColumnRole.Feature, "Features"), 576new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RoleMappedSchema.ColumnRole.Label, "Label"));
Microsoft.ML.Recommender (12)
MatrixFactorizationPredictor.cs (4)
373public IEnumerable<KeyValuePair<RoleMappedSchema.ColumnRole, string>> GetInputColumnRoles() 471var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>(); 472roles.Add(new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RecommenderUtils.MatrixColumnIndexKind, MatrixColumnIndexColumnName)); 473roles.Add(new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RecommenderUtils.MatrixRowIndexKind, MatrixRowIndexColumnName));
MatrixFactorizationTrainer.cs (5)
529var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>(); 530roles.Add(new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RoleMappedSchema.ColumnRole.Label, LabelName)); 531roles.Add(new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RecommenderUtils.MatrixColumnIndexKind.Value, MatrixColumnIndexName)); 532roles.Add(new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RecommenderUtils.MatrixRowIndexKind.Value, MatrixRowIndexName));
RecommenderUtils.cs (3)
48private static KeyDataViewType CheckRowColumnType(RoleMappedData data, RoleMappedSchema.ColumnRole role, out DataViewSchema.Column col, bool isDecode) 79public static RoleMappedSchema.ColumnRole MatrixColumnIndexKind => "MatrixColumnIndex"; 84public static RoleMappedSchema.ColumnRole MatrixRowIndexKind => "MatrixRowIndex";
Microsoft.ML.StandardTrainers (32)
FactorizationMachine\FactorizationMachineTrainer.cs (10)
362var featureColumns = data.Schema.GetColumns(RoleMappedSchema.ColumnRole.Feature); 415var featureColumns = data.Schema.GetColumns(RoleMappedSchema.ColumnRole.Feature); 440var validFeatureColumns = data.Schema.GetColumns(RoleMappedSchema.ColumnRole.Feature); 593var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>(); 595roles.Add(new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RoleMappedSchema.ColumnRole.Feature, feat.Name)); 597roles.Add(new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RoleMappedSchema.ColumnRole.Label, LabelColumn.Name)); 600roles.Add(new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RoleMappedSchema.ColumnRole.Feature, WeightColumn.Name));
FactorizationMachine\FieldAwareFactorizationMachineModelParameters.cs (3)
423var roles = new List<KeyValuePair<RoleMappedSchema.ColumnRole, string>>(); 425roles.Add(new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RoleMappedSchema.ColumnRole.Feature, feat));
FactorizationMachine\FieldAwareFactorizationMachineUtils.cs (5)
84_columns = schema.GetColumns(RoleMappedSchema.ColumnRole.Feature).ToArray(); 87var inputFeatureColumns = _columns.Select(c => new KeyValuePair<RoleMappedSchema.ColumnRole, string>(RoleMappedSchema.ColumnRole.Feature, c.Name)).ToList(); 151public IEnumerable<KeyValuePair<RoleMappedSchema.ColumnRole, string>> GetInputColumnRoles() 153return InputRoleMappedSchema.GetColumnRoles().Select(kvp => new KeyValuePair<RoleMappedSchema.ColumnRole, string>(kvp.Key, kvp.Value.Name));
Standard\LinearModelParameters.cs (2)
377AnnotationUtils.GetSlotNames(schema, RoleMappedSchema.ColumnRole.Feature, Weight.Length, ref names); 552AnnotationUtils.GetSlotNames(schema, RoleMappedSchema.ColumnRole.Feature, Weight.Length, ref names);
Standard\LinearPredictorUtils.cs (3)
38AnnotationUtils.GetSlotNames(schema, RoleMappedSchema.ColumnRole.Feature, weights.Length, ref featureNames); 106AnnotationUtils.GetSlotNames(schema, RoleMappedSchema.ColumnRole.Feature, weights.Length, ref featureNames); 232AnnotationUtils.GetSlotNames(schema, RoleMappedSchema.ColumnRole.Feature, weights.Length, ref names);
Standard\LogisticRegression\MulticlassLogisticRegression.cs (3)
839AnnotationUtils.GetSlotNames(schema, RoleMappedSchema.ColumnRole.Feature, NumberOfFeatures, ref names); 1100AnnotationUtils.GetSlotNames(schema, RoleMappedSchema.ColumnRole.Feature, NumberOfFeatures, ref dst); 1120AnnotationUtils.GetSlotNames(schema, RoleMappedSchema.ColumnRole.Feature, Weights.Length, ref names);
Standard\MulticlassClassification\OneVersusAllTrainer.cs (3)
37using CR = RoleMappedSchema.ColumnRole; 212var roles = new KeyValuePair<CR, string>[1]; 213roles[0] = new KeyValuePair<CR, string>(new CR(DefaultColumnNames.Label), LabelColumn.Name);
Standard\MulticlassClassification\PairwiseCouplingTrainer.cs (3)
26using CR = RoleMappedSchema.ColumnRole; 190var roles = new KeyValuePair<CR, string>[1]; 191roles[0] = new KeyValuePair<CR, string>(new CR(DefaultColumnNames.Label), LabelColumn.Name);
Microsoft.ML.Transforms (1)
Dracula\CountTableTransformer.cs (1)
135CheckLabelType(new RoleMappedData(input, roles: RoleMappedSchema.CreatePair(RoleMappedSchema.ColumnRole.Label, _labelColumnName)), out var labelCardinality);