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