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