185 references to DefaultColumnNames
Microsoft.ML.Data (185)
Commands\CrossValidationCommand.cs (13)
43
public string FeatureColumn =
DefaultColumnNames
.Features;
46
public string LabelColumn =
DefaultColumnNames
.Label;
49
public string WeightColumn =
DefaultColumnNames
.Weight;
52
public string GroupColumn =
DefaultColumnNames
.GroupId;
55
public string NameColumn =
DefaultColumnNames
.Name;
160
string name = TrainUtils.MatchNameOrDefaultOrNull(ch, loader.Schema, nameof(ImplOptions.NameColumn), ImplOptions.NameColumn,
DefaultColumnNames
.Name);
171
args.Columns = new[] { new GenerateNumberTransform.Column() { Name =
DefaultColumnNames
.Name }, };
271
string label = TrainUtils.MatchNameOrDefaultOrNull(ch, schema, nameof(ImplOptions.LabelColumn), ImplOptions.LabelColumn,
DefaultColumnNames
.Label);
272
string features = TrainUtils.MatchNameOrDefaultOrNull(ch, schema, nameof(ImplOptions.FeatureColumn), ImplOptions.FeatureColumn,
DefaultColumnNames
.Features);
273
string weight = TrainUtils.MatchNameOrDefaultOrNull(ch, schema, nameof(ImplOptions.WeightColumn), ImplOptions.WeightColumn,
DefaultColumnNames
.Weight);
274
string name = TrainUtils.MatchNameOrDefaultOrNull(ch, schema, nameof(ImplOptions.NameColumn), ImplOptions.NameColumn,
DefaultColumnNames
.Name);
275
string group = TrainUtils.MatchNameOrDefaultOrNull(ch, schema, nameof(ImplOptions.GroupColumn), ImplOptions.GroupColumn,
DefaultColumnNames
.GroupId);
297
string group = TrainUtils.MatchNameOrDefaultOrNull(ch, schema, nameof(ImplOptions.GroupColumn), ImplOptions.GroupColumn,
DefaultColumnNames
.GroupId);
Commands\EvaluateCommand.cs (14)
127
public string LabelColumn =
DefaultColumnNames
.Label;
130
public string WeightColumn =
DefaultColumnNames
.Weight;
133
public string GroupColumn =
DefaultColumnNames
.GroupId;
155
args.LabelColumn,
DefaultColumnNames
.Label);
157
args.GroupColumn,
DefaultColumnNames
.GroupId);
159
args.WeightColumn,
DefaultColumnNames
.Weight);
177
public string LabelColumn =
DefaultColumnNames
.Label;
180
public string WeightColumn =
DefaultColumnNames
.Weight;
183
public string GroupColumn =
DefaultColumnNames
.GroupId;
186
public string NameColumn =
DefaultColumnNames
.Name;
231
ImplOptions.LabelColumn,
DefaultColumnNames
.Label);
233
ImplOptions.GroupColumn,
DefaultColumnNames
.GroupId);
235
ImplOptions.WeightColumn,
DefaultColumnNames
.Weight);
237
ImplOptions.NameColumn,
DefaultColumnNames
.Name);
Commands\ScoreCommand.cs (4)
47
public string FeatureColumn =
DefaultColumnNames
.Features;
50
public string GroupColumn =
DefaultColumnNames
.GroupId;
117
nameof(ImplOptions.FeatureColumn), ImplOptions.FeatureColumn,
DefaultColumnNames
.Features);
119
nameof(ImplOptions.GroupColumn), ImplOptions.GroupColumn,
DefaultColumnNames
.GroupId);
Commands\TestCommand.cs (10)
28
public string FeatureColumn =
DefaultColumnNames
.Features;
31
public string LabelColumn =
DefaultColumnNames
.Label;
34
public string WeightColumn =
DefaultColumnNames
.Weight;
37
public string GroupColumn =
DefaultColumnNames
.GroupId;
40
public string NameColumn =
DefaultColumnNames
.Name;
102
ImplOptions.LabelColumn,
DefaultColumnNames
.Label);
104
ImplOptions.FeatureColumn,
DefaultColumnNames
.Features);
106
ImplOptions.GroupColumn,
DefaultColumnNames
.GroupId);
108
ImplOptions.WeightColumn,
DefaultColumnNames
.Weight);
110
ImplOptions.NameColumn,
DefaultColumnNames
.Name);
Commands\TrainCommand.cs (10)
44
public string FeatureColumn =
DefaultColumnNames
.Features;
47
public string LabelColumn =
DefaultColumnNames
.Label;
50
public string WeightColumn =
DefaultColumnNames
.Weight;
53
public string GroupColumn =
DefaultColumnNames
.GroupId;
56
public string NameColumn =
DefaultColumnNames
.Name;
152
var label = TrainUtils.MatchNameOrDefaultOrNull(ch, schema, nameof(Arguments.LabelColumn), _labelColumn,
DefaultColumnNames
.Label);
153
var feature = TrainUtils.MatchNameOrDefaultOrNull(ch, schema, nameof(Arguments.FeatureColumn), _featureColumn,
DefaultColumnNames
.Features);
154
var group = TrainUtils.MatchNameOrDefaultOrNull(ch, schema, nameof(Arguments.GroupColumn), _groupColumn,
DefaultColumnNames
.GroupId);
155
var weight = TrainUtils.MatchNameOrDefaultOrNull(ch, schema, nameof(Arguments.WeightColumn), _weightColumn,
DefaultColumnNames
.Weight);
156
var name = TrainUtils.MatchNameOrDefaultOrNull(ch, schema, nameof(Arguments.NameColumn), _nameColumn,
DefaultColumnNames
.Name);
Commands\TrainTestCommand.cs (10)
41
public string FeatureColumn =
DefaultColumnNames
.Features;
44
public string LabelColumn =
DefaultColumnNames
.Label;
47
public string WeightColumn =
DefaultColumnNames
.Weight;
50
public string GroupColumn =
DefaultColumnNames
.GroupId;
53
public string NameColumn =
DefaultColumnNames
.Name;
136
ImplOptions.LabelColumn,
DefaultColumnNames
.Label);
138
ImplOptions.FeatureColumn,
DefaultColumnNames
.Features);
140
ImplOptions.GroupColumn,
DefaultColumnNames
.GroupId);
142
ImplOptions.WeightColumn,
DefaultColumnNames
.Weight);
144
ImplOptions.NameColumn,
DefaultColumnNames
.Name);
EntryPoints\InputBase.cs (1)
35
public string NameColumn =
DefaultColumnNames
.Name;
Evaluators\AnomalyDetectionEvaluator.cs (3)
588
internal AnomalyDetectionMetrics Evaluate(IDataView data, string label =
DefaultColumnNames
.Label, string score =
DefaultColumnNames
.Score,
589
string predictedLabel =
DefaultColumnNames
.PredictedLabel)
Evaluators\BinaryClassifierEvaluator.cs (3)
1537
input.LabelColumn,
DefaultColumnNames
.Label);
1540
input.WeightColumn,
DefaultColumnNames
.Weight);
1543
input.NameColumn,
DefaultColumnNames
.Name);
Evaluators\ClusteringEvaluator.cs (2)
813
string feat = EvaluateUtils.GetColName(_featureCol, schema.Feature,
DefaultColumnNames
.Features);
869
input.FeatureColumn,
DefaultColumnNames
.Features);
Evaluators\MamlEvaluator.cs (1)
142
string label = EvaluateUtils.GetColName(LabelCol, schema.Label,
DefaultColumnNames
.Label);
Evaluators\RankingEvaluator.cs (3)
66
private const string GroupId =
DefaultColumnNames
.GroupId;
896
var groupIdCol = EvaluateUtils.GetColName(_groupIdCol, schema.Group,
DefaultColumnNames
.GroupId);
1095
input.GroupIdColumn,
DefaultColumnNames
.GroupId);
Model\Pfa\SavePfaCommand.cs (5)
155
data = new RoleMappedData(end,
DefaultColumnNames
.Label,
156
DefaultColumnNames
.Features,
DefaultColumnNames
.GroupId,
DefaultColumnNames
.Weight,
DefaultColumnNames
.Name, opt: true);
Prediction\Calibrator.cs (2)
1023
var scoreColumn = scored.Schema[
DefaultColumnNames
.Score];
1024
return TrainCalibrator(env, ch, caliTrainer, scored, data.Schema.Label.Value.Name,
DefaultColumnNames
.Score, data.Schema.Weight?.Name, maxRows);
Prediction\CalibratorCatalog.cs (15)
125
outColumns[
DefaultColumnNames
.Probability] = new SchemaShape.Column(
DefaultColumnNames
.Probability,
135
/// <see cref="
DefaultColumnNames
.Probability"/> column containing the calibrated <see cref="
DefaultColumnNames
.Score"/>.
139
/// <see cref="
DefaultColumnNames
.Probability"/> column.</returns>
199
_scoreColumnName =
DefaultColumnNames
.Score;
203
string ISingleFeaturePredictionTransformer<TICalibrator>.FeatureColumnName =>
DefaultColumnNames
.Score;
309
new DataViewSchema.DetachedColumn(
DefaultColumnNames
.Probability, NumberDataViewType.Single, builder.ToAnnotations())
350
string labelColumnName =
DefaultColumnNames
.Label,
351
string scoreColumnName =
DefaultColumnNames
.Score,
383
string scoreColumn =
DefaultColumnNames
.Score)
438
string labelColumn =
DefaultColumnNames
.Label,
439
string scoreColumn =
DefaultColumnNames
.Score,
487
string labelColumn =
DefaultColumnNames
.Label,
488
string scoreColumn =
DefaultColumnNames
.Score,
Scorers\FeatureContributionCalculation.cs (2)
329
builder.AddColumn(
DefaultColumnNames
.FeatureContributions, TextDataViewType.Instance, null);
345
schemaBuilder.AddColumn(
DefaultColumnNames
.FeatureContributions, featureContributionType, metadataBuilder.ToAnnotations());
Scorers\MulticlassClassificationScorer.cs (1)
42
public string PredictedLabelColumnName =
DefaultColumnNames
.PredictedLabel;
Scorers\PredictedLabelScorerBase.cs (3)
48
bool user, int scoreColIndex, DataViewType predColType, string predictedLabelColumnName =
DefaultColumnNames
.PredictedLabel)
88
string scoreColKind, int scoreColIndex, DataViewType predColType, string predictedLabelColumnName =
DefaultColumnNames
.PredictedLabel)
278
Func<DataViewType, bool> outputTypeMatches, Func<DataViewType, ISchemaBoundRowMapper, DataViewType> getPredColType, string predictedLabelColumnName =
DefaultColumnNames
.PredictedLabel)
Scorers\PredictionTransformer.cs (6)
323
float threshold = 0.5f, string thresholdColumn =
DefaultColumnNames
.Score)
393
float threshold = 0f, string thresholdColumn =
DefaultColumnNames
.Score)
404
float threshold = 0f, string thresholdColumn =
DefaultColumnNames
.Score)
485
string scoreColumn = AnnotationUtils.Const.ScoreValueKind.Score, string predictedLabel =
DefaultColumnNames
.PredictedLabel) :
524
predictedLabelColumn =
DefaultColumnNames
.PredictedLabel;
670
float threshold = 0f, string thresholdColumn =
DefaultColumnNames
.Score)
TrainCatalog.cs (35)
202
public CalibratedBinaryClassificationMetrics Evaluate(IDataView data, string labelColumnName =
DefaultColumnNames
.Label, string scoreColumnName =
DefaultColumnNames
.Score,
203
string probabilityColumnName =
DefaultColumnNames
.Probability, string predictedLabelColumnName =
DefaultColumnNames
.PredictedLabel)
223
public BinaryClassificationMetrics EvaluateNonCalibrated(IDataView data, string labelColumnName =
DefaultColumnNames
.Label, string scoreColumnName =
DefaultColumnNames
.Score,
224
string predictedLabelColumnName =
DefaultColumnNames
.PredictedLabel)
250
IDataView data, IEstimator<ITransformer> estimator, int numberOfFolds = 5, string labelColumnName =
DefaultColumnNames
.Label,
275
IDataView data, IEstimator<ITransformer> estimator, int numberOfFolds = 5, string labelColumnName =
DefaultColumnNames
.Label,
326
string labelColumnName =
DefaultColumnNames
.Label,
327
string scoreColumnName =
DefaultColumnNames
.Score)
345
string labelColumnName =
DefaultColumnNames
.Label,
346
string scoreColumnName =
DefaultColumnNames
.Score,
368
string scoreColumnName =
DefaultColumnNames
.Score)
391
string labelColumnName =
DefaultColumnNames
.Label,
392
string scoreColumnName =
DefaultColumnNames
.Score,
443
string scoreColumnName =
DefaultColumnNames
.Score,
522
public MulticlassClassificationMetrics Evaluate(IDataView data, string labelColumnName =
DefaultColumnNames
.Label, string scoreColumnName =
DefaultColumnNames
.Score,
523
string predictedLabelColumnName =
DefaultColumnNames
.PredictedLabel, int topKPredictionCount = 0)
554
IDataView data, IEstimator<ITransformer> estimator, int numberOfFolds = 5, string labelColumnName =
DefaultColumnNames
.Label,
599
public RegressionMetrics Evaluate(IDataView data, string labelColumnName =
DefaultColumnNames
.Label, string scoreColumnName =
DefaultColumnNames
.Score)
624
IDataView data, IEstimator<ITransformer> estimator, int numberOfFolds = 5, string labelColumnName =
DefaultColumnNames
.Label,
671
string labelColumnName =
DefaultColumnNames
.Label,
672
string rowGroupColumnName =
DefaultColumnNames
.GroupId,
673
string scoreColumnName =
DefaultColumnNames
.Score) => Evaluate(data, null, labelColumnName, rowGroupColumnName, scoreColumnName);
686
string labelColumnName =
DefaultColumnNames
.Label,
687
string rowGroupColumnName =
DefaultColumnNames
.GroupId,
688
string scoreColumnName =
DefaultColumnNames
.Score)
715
IDataView data, IEstimator<ITransformer> estimator, int numberOfFolds = 5, string labelColumnName =
DefaultColumnNames
.Label,
716
string rowGroupColumnName =
DefaultColumnNames
.GroupId, int? seed = null)
762
public AnomalyDetectionMetrics Evaluate(IDataView data, string labelColumnName =
DefaultColumnNames
.Label, string scoreColumnName =
DefaultColumnNames
.Score,
763
string predictedLabelColumnName =
DefaultColumnNames
.PredictedLabel, int falsePositiveCount = 10)
Training\TrainerInputBase.cs (2)
33
public string FeatureColumnName =
DefaultColumnNames
.Features;
64
public string LabelColumnName =
DefaultColumnNames
.Label;
Training\TrainerUtils.cs (12)
429
if (tschema.Feature?.Name is string fname && fname !=
DefaultColumnNames
.Features)
430
nameMap.Add((
DefaultColumnNames
.Features, fname));
431
if (tschema.Label?.Name is string lname && lname !=
DefaultColumnNames
.Label)
432
nameMap.Add((
DefaultColumnNames
.Label, lname));
433
if (tschema.Weight?.Name is string wname && wname !=
DefaultColumnNames
.Weight)
434
nameMap.Add((
DefaultColumnNames
.Weight, wname));
435
if (tschema.Group?.Name is string gname && gname !=
DefaultColumnNames
.GroupId)
436
nameMap.Add((
DefaultColumnNames
.GroupId, gname));
437
if (tschema.Group?.Name is string iname && iname !=
DefaultColumnNames
.Item)
438
nameMap.Add((
DefaultColumnNames
.Item, iname));
439
if (tschema.Group?.Name is string uname && uname !=
DefaultColumnNames
.User)
440
nameMap.Add((
DefaultColumnNames
.User, uname));
Transforms\FeatureContributionCalculationTransformer.cs (7)
39
public string FeatureColumn =
DefaultColumnNames
.Features;
86
string featureColumnName =
DefaultColumnNames
.Features,
90
: base(Contracts.CheckRef(env, nameof(env)).Register(nameof(FeatureContributionCalculatingTransformer)), new[] { (name:
DefaultColumnNames
.FeatureContributions, source: featureColumnName) })
200
return new[] { new DataViewSchema.DetachedColumn(
DefaultColumnNames
.FeatureContributions, new VectorDataViewType(NumberDataViewType.Single, _featureColumnType.Size), builder.ToAnnotations()) };
325
string featureColumnName =
DefaultColumnNames
.Features,
355
result[
DefaultColumnNames
.FeatureContributions] = new SchemaShape.Column(
356
DefaultColumnNames
.FeatureContributions, col.Kind, col.ItemType, false, new SchemaShape(featContributionMetadata));
Transforms\NormalizeColumn.cs (1)
1142
args.LabelColumn ??
DefaultColumnNames
.Label,
Transforms\Normalizer.cs (1)
251
string labelColumnName =
DefaultColumnNames
.Label,
Transforms\TrainAndScoreTransformer.cs (19)
30
public string FeatureColumn =
DefaultColumnNames
.Features;
34
public string GroupColumn =
DefaultColumnNames
.GroupId;
64
string featureColumn =
DefaultColumnNames
.Features,
65
string groupColumn =
DefaultColumnNames
.GroupId)
94
nameof(args.FeatureColumn), args.FeatureColumn,
DefaultColumnNames
.Features);
96
nameof(args.GroupColumn), args.GroupColumn,
DefaultColumnNames
.GroupId);
113
public string FeatureColumn =
DefaultColumnNames
.Features;
117
public string LabelColumn =
DefaultColumnNames
.Label;
121
public string GroupColumn =
DefaultColumnNames
.GroupId;
125
public string WeightColumn =
DefaultColumnNames
.Weight;
129
public string NameColumn =
DefaultColumnNames
.Name;
180
string featureColumn =
DefaultColumnNames
.Features,
181
string labelColumn =
DefaultColumnNames
.Label,
182
string groupColumn =
DefaultColumnNames
.GroupId)
262
DefaultColumnNames
.Features);
264
DefaultColumnNames
.Label);
266
DefaultColumnNames
.GroupId);
268
DefaultColumnNames
.Weight);
270
DefaultColumnNames
.Name);