1 write to Name
Microsoft.ML.Core (1)
Data\IEstimator.cs (1)
70Name = name;
210 references to Name
Microsoft.ML.Core (6)
Data\IEstimator.cs (6)
82/// - The <see cref="Name"/>, <see cref="Kind"/>, <see cref="ItemType"/>, <see cref="IsKey"/> fields match. 90if (Name != source.Name) 100if (!source.Annotations.TryFindColumn(annotationCol.Name, out var inputAnnotationCol)) 126internal bool IsValid => Name != null; 210column = _columns.FirstOrDefault(x => x.Name == name);
Microsoft.ML.Data (41)
DataLoadSave\FakeSchema.cs (2)
40metaBuilder.Add(partialAnnotations[j].Name, metaColumnType, del); 42builder.AddColumn(shape[i].Name, MakeColumnType(shape[i]), metaBuilder.ToAnnotations());
Prediction\CalibratorCatalog.cs (9)
91if (!inputSchema.TryFindColumn(column.Name, out var outCol)) 92throw Host.ExceptSchemaMismatch(nameof(inputSchema), columnRole, column.Name); 94throw Host.ExceptSchemaMismatch(nameof(inputSchema), columnRole, column.Name, column.GetTypeString(), outCol.GetTypeString()); 103bool success = inputSchema.TryFindColumn(ScoreColumn.Name, out var inputScoreCol); 124var outColumns = inputSchema.ToDictionary(x => x.Name); 145_calibratorTrainer, input, LabelColumn.Name, ScoreColumn.Name, WeightColumn.Name); 146return Create(Host, calibrator, ScoreColumn.Name);
Training\TrainerEstimatorBase.cs (18)
85var outColumns = inputSchema.ToDictionary(x => x.Name); 87outColumns[col.Name] = col; 108if (!inputSchema.TryFindColumn(FeatureColumn.Name, out var featureCol)) 109throw Host.ExceptSchemaMismatch(nameof(inputSchema), "feature", FeatureColumn.Name); 111throw Host.ExceptSchemaMismatch(nameof(inputSchema), "feature", FeatureColumn.Name, 116if (!inputSchema.TryFindColumn(WeightColumn.Name, out var weightCol)) 117throw Host.ExceptSchemaMismatch(nameof(inputSchema), "weight", WeightColumn.Name); 119throw Host.ExceptSchemaMismatch(nameof(inputSchema), "weight", WeightColumn.Name, 127if (!inputSchema.TryFindColumn(LabelColumn.Name, out var labelCol)) 128throw Host.ExceptSchemaMismatch(nameof(inputSchema), "label", LabelColumn.Name); 139throw Host.ExceptSchemaMismatch(nameof(labelCol), "label", LabelColumn.Name, 166new RoleMappedData(data, label: LabelColumn.Name, feature: FeatureColumn.Name, weight: WeightColumn.Name); 198new RoleMappedData(data, label: LabelColumn.Name, feature: FeatureColumn.Name, group: GroupIdColumn.Name, weight: WeightColumn.Name);
Transforms\ColumnConcatenatingEstimator.cs (1)
148var result = inputSchema.ToDictionary(x => x.Name);
Transforms\ColumnCopying.cs (1)
76var resultDic = inputSchema.ToDictionary(x => x.Name);
Transforms\ColumnSelecting.cs (2)
135if (!Transformer.IgnoreMissing && !ColumnSelectingTransformer.IsSchemaValid(inputSchema.Select(x => x.Name), 142var columns = inputSchema.Where(c => _selectPredicate(c.Name));
Transforms\FeatureContributionCalculationTransformer.cs (1)
349var result = inputSchema.ToDictionary(x => x.Name);
Transforms\Hashing.cs (1)
1956var result = inputSchema.ToDictionary(x => x.Name);
Transforms\KeyToValue.cs (1)
637var result = inputSchema.ToDictionary(x => x.Name);
Transforms\KeyToVector.cs (1)
821var result = inputSchema.ToDictionary(x => x.Name);
Transforms\Normalizer.cs (1)
347var result = inputSchema.ToDictionary(x => x.Name);
Transforms\TypeConverting.cs (1)
625var result = inputSchema.ToDictionary(x => x.Name);
Transforms\ValueMapping.cs (1)
93var resultDic = inputSchema.ToDictionary(x => x.Name);
Transforms\ValueToKeyMappingEstimator.cs (1)
181var result = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.FastTree (12)
FastTree.cs (1)
121FastTreeTrainerOptions.LabelColumnName = label.Name;
FastTreeClassification.cs (1)
303=> new BinaryPredictionTransformer<CalibratedModelParametersBase<FastTreeBinaryModelParameters, PlattCalibrator>>(Host, model, trainSchema, FeatureColumn.Name);
FastTreeRanking.cs (2)
125() => throw Host.ExceptSchemaMismatch(nameof(labelCol), "label", labelCol.Name, "Single or Key", labelCol.GetTypeString()); 476=> new RankingPredictionTransformer<FastTreeRankingModelParameters>(Host, model, trainSchema, FeatureColumn.Name);
FastTreeRegression.cs (1)
192=> new RegressionPredictionTransformer<FastTreeRegressionModelParameters>(Host, model, trainSchema, FeatureColumn.Name);
FastTreeTweedie.cs (1)
351=> new RegressionPredictionTransformer<FastTreeTweedieModelParameters>(Host, model, trainSchema, FeatureColumn.Name);
GamClassification.cs (1)
174=> new BinaryPredictionTransformer<CalibratedModelParametersBase<GamBinaryModelParameters, PlattCalibrator>>(Host, model, trainSchema, FeatureColumn.Name);
GamRegression.cs (1)
126=> new RegressionPredictionTransformer<GamRegressionModelParameters>(Host, model, trainSchema, FeatureColumn.Name);
GamTrainer.cs (1)
183GamTrainerOptions.LabelColumnName = label.Name;
RandomForestClassification.cs (1)
366=> new BinaryPredictionTransformer<FastForestBinaryModelParameters>(Host, model, trainSchema, FeatureColumn.Name);
RandomForestRegression.cs (1)
495=> new RegressionPredictionTransformer<FastForestRegressionModelParameters>(Host, model, trainSchema, FeatureColumn.Name);
TreeEnsembleFeaturizationEstimator.cs (1)
134var result = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.ImageAnalytics (5)
ImageGrayscale.cs (1)
249var result = inputSchema.ToDictionary(x => x.Name);
ImageLoader.cs (1)
440var result = inputSchema.ToDictionary(x => x.Name);
ImagePixelExtractor.cs (1)
812var result = inputSchema.ToDictionary(x => x.Name);
ImageResizer.cs (1)
512var result = inputSchema.ToDictionary(x => x.Name);
VectorToImageTransform.cs (1)
746var result = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.LightGbm (9)
LightGbmBinaryTrainer.cs (1)
294=> new BinaryPredictionTransformer<CalibratedModelParametersBase<LightGbmBinaryModelParameters, PlattCalibrator>>(Host, model, trainSchema, FeatureColumn.Name);
LightGbmMulticlassTrainer.cs (4)
363bool success = inputSchema.TryFindColumn(LabelColumn.Name, out labelCol); 367var metadata = LightGbmTrainerOptions.LightGbmModel == null ? new SchemaShape(labelCol.Annotations.Where(x => x.Name == AnnotationUtils.Kinds.KeyValues).Concat(AnnotationUtils.GetTrainerOutputAnnotation())) : new SchemaShape(AnnotationUtils.GetTrainerOutputAnnotation()); 376=> new MulticlassPredictionTransformer<OneVersusAllModelParameters>(Host, model, trainSchema, FeatureColumn.Name, LabelColumn.Name);
LightGbmRankingTrainer.cs (2)
273() => throw Host.ExceptSchemaMismatch(nameof(labelCol), "label", labelCol.Name, "Single or Key", labelCol.GetTypeString()); 307=> new RankingPredictionTransformer<LightGbmRankingModelParameters>(Host, model, trainSchema, FeatureColumn.Name);
LightGbmRegressionTrainer.cs (1)
255=> new RegressionPredictionTransformer<LightGbmRegressionModelParameters>(Host, model, trainSchema, FeatureColumn.Name);
LightGbmTrainerBase.cs (1)
333LabelColumnName = labelColumn.Name,
Microsoft.ML.Mkl.Components (3)
OlsLinearRegression.cs (1)
132=> new RegressionPredictionTransformer<OlsModelParameters>(Host, model, trainSchema, FeatureColumn.Name);
SymSgdClassificationTrainer.cs (1)
263=> new BinaryPredictionTransformer<TPredictor>(Host, model, trainSchema, FeatureColumn.Name);
VectorWhitening.cs (1)
893var result = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.OnnxTransformer (2)
OnnxTransform.cs (2)
1052var result = inputSchema.ToDictionary(x => x.Name); 1053var resultDic = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.PCA (1)
PcaTransformer.cs (1)
818var result = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.Recommender (5)
MatrixFactorizationTrainer.cs (5)
560if (!inputSchema.TryFindColumn(cachedColumn.Name, out var col)) 561throw _host.ExceptSchemaMismatch(nameof(col), columnRole, cachedColumn.Name); 564throw _host.ExceptSchemaMismatch(nameof(inputSchema), columnRole, cachedColumn.Name, 579var outColumns = inputSchema.ToDictionary(x => x.Name); 583outColumns[col.Name] = col;
Microsoft.ML.StandardTrainers (51)
FactorizationMachine\FactorizationMachineTrainer.cs (10)
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)); 611return new FieldAwareFactorizationMachinePredictionTransformer(_host, model, trainData.Schema, FeatureColumns.Select(x => x.Name).ToArray()); 629if (!inputSchema.TryFindColumn(column.Name, out var col)) 630throw _host.ExceptSchemaMismatch(nameof(inputSchema), columnRole, column.Name); 633throw _host.ExceptSchemaMismatch(nameof(inputSchema), columnRole, column.Name, 647var outColumns = inputSchema.ToDictionary(x => x.Name); 649outColumns[col.Name] = col; 656bool success = inputSchema.TryFindColumn(LabelColumn.Name, out var labelCol);
Standard\LogisticRegression\LbfgsPredictorBase.cs (5)
216LabelColumnName = labelColumn.Name, 241options.FeatureColumnName = FeatureColumn.Name; 242options.LabelColumnName = LabelColumn.Name; 243options.ExampleWeightColumnName = WeightColumn.Name; 296LabelColumnName = labelColumn.Name,
Standard\LogisticRegression\LogisticRegression.cs (1)
181=> new BinaryPredictionTransformer<CalibratedModelParametersBase<LinearBinaryModelParameters, PlattCalibrator>>(Host, model, trainSchema, FeatureColumn.Name);
Standard\LogisticRegression\MulticlassLogisticRegression.cs (4)
371bool success = inputSchema.TryFindColumn(LabelColumn.Name, out var labelCol); 374var metadata = new SchemaShape(labelCol.Annotations.Where(x => x.Name == AnnotationUtils.Kinds.KeyValues) 384=> new MulticlassPredictionTransformer<MaximumEntropyModelParameters>(Host, model, trainSchema, FeatureColumn.Name, LabelColumn.Name);
Standard\MulticlassClassification\MetaMulticlassTrainer.cs (7)
147if (!inputSchema.TryFindColumn(LabelColumn.Name, out var labelCol)) 148throw Host.ExceptSchemaMismatch(nameof(labelCol), "label", LabelColumn.Name); 151throw Host.ExceptSchemaMismatch(nameof(inputSchema), "label", LabelColumn.Name, LabelColumn.GetTypeString(), labelCol.GetTypeString()); 154var outColumns = inputSchema.ToDictionary(x => x.Name); 156outColumns[col.Name] = col; 168bool success = inputSchema.TryFindColumn(LabelColumn.Name, out var inputLabelCol); 172inputLabelCol.Annotations.Where(x => x.Name == AnnotationUtils.Kinds.KeyValues));
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (4)
116bool success = inputSchema.TryFindColumn(LabelColumn.Name, out var labelCol); 119var predLabelMetadata = new SchemaShape(labelCol.Annotations.Where(x => x.Name == AnnotationUtils.Kinds.KeyValues) 130=> new MulticlassPredictionTransformer<NaiveBayesMulticlassModelParameters>(Host, model, trainSchema, FeatureColumn.Name, LabelColumn.Name);
Standard\MulticlassClassification\OneVersusAllTrainer.cs (2)
213roles[0] = new KeyValuePair<CR, string>(new CR(DefaultColumnNames.Label), LabelColumn.Name); 237return new MulticlassPredictionTransformer<OneVersusAllModelParameters>(Host, OneVersusAllModelParameters.Create(Host, _options.UseProbabilities, predictors), input.Schema, featureColumn, LabelColumn.Name);
Standard\MulticlassClassification\PairwiseCouplingTrainer.cs (2)
191roles[0] = new KeyValuePair<CR, string>(new CR(DefaultColumnNames.Label), LabelColumn.Name); 220return new MulticlassPredictionTransformer<PairwiseCouplingModelParameters>(Host, new PairwiseCouplingModelParameters(Host, predictors), input.Schema, featureColumn, LabelColumn.Name);
Standard\Online\AveragedPerceptron.cs (1)
218=> new BinaryPredictionTransformer<LinearBinaryModelParameters>(Host, model, trainSchema, FeatureColumn.Name);
Standard\Online\LinearSvm.cs (1)
338=> new BinaryPredictionTransformer<LinearBinaryModelParameters>(Host, model, trainSchema, FeatureColumn.Name);
Standard\Online\OnlineGradientDescent.cs (1)
203=> new RegressionPredictionTransformer<LinearRegressionModelParameters>(Host, model, trainSchema, FeatureColumn.Name);
Standard\PoissonRegression\PoissonRegression.cs (1)
128=> new RegressionPredictionTransformer<PoissonRegressionModelParameters>(Host, model, trainSchema, FeatureColumn.Name);
Standard\SdcaBinary.cs (3)
295args.LabelColumnName = labelColumn.Name; 1551=> new BinaryPredictionTransformer<TModelParameters>(Host, model, trainSchema, FeatureColumn.Name); 2008=> new BinaryPredictionTransformer<TModel>(Host, model, trainSchema, FeatureColumn.Name);
Standard\SdcaMulticlass.cs (6)
161bool success = inputSchema.TryFindColumn(LabelColumn.Name, out var labelCol); 164var metadata = new SchemaShape(labelCol.Annotations.Where(x => x.Name == AnnotationUtils.Kinds.KeyValues) 566new MulticlassPredictionTransformer<MaximumEntropyModelParameters>(Host, model, trainSchema, FeatureColumn.Name, LabelColumn.Name); 663new MulticlassPredictionTransformer<LinearMulticlassModelParameters>(Host, model, trainSchema, FeatureColumn.Name, LabelColumn.Name);
Standard\SdcaRegression.cs (1)
202=> new RegressionPredictionTransformer<LinearRegressionModelParameters>(Host, model, trainSchema, FeatureColumn.Name);
Standard\Simple\SimpleTrainers.cs (2)
314var outColumns = inputSchema.ToDictionary(x => x.Name); 323outColumns[column.Name] = column;
Microsoft.ML.TensorFlow (2)
TensorflowTransform.cs (2)
1033var result = inputSchema.ToDictionary(x => x.Name); 1034var resultDic = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.TestFramework (6)
DataPipe\TestDataPipeBase.cs (6)
157var promisedCols = promised.OrderBy(x => x.Name); 158var deliveredCols = delivered.OrderBy(x => x.Name); 162Assert.Equal(p.Name, d.Name); 164Assert.True(d.IsCompatibleWith(p), $"Mismatch on {p.Name}, there was a mismatch, or some unexpected annotations was present."); 168Assert.True(p.IsCompatibleWith(d), $"Mismatch on {p.Name}, something was promised in the annotations but not delivered.");
Microsoft.ML.TimeSeries (6)
IidChangePointDetector.cs (1)
273var resultDic = inputSchema.ToDictionary(x => x.Name);
IidSpikeDetector.cs (1)
249var resultDic = inputSchema.ToDictionary(x => x.Name);
SRCNNAnomalyDetector.cs (1)
281var resultDic = inputSchema.ToDictionary(x => x.Name);
SsaChangePointDetector.cs (1)
309var resultDic = inputSchema.ToDictionary(x => x.Name);
SSaForecasting.cs (1)
339var resultDic = inputSchema.ToDictionary(x => x.Name);
SsaSpikeDetector.cs (1)
288var resultDic = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.TorchSharp (19)
AutoFormerV2\ObjectDetectionTrainer.cs (2)
444var outColumns = inputSchema.ToDictionary(x => x.Name); 545var outColumns = inputSchema.ToDictionary(x => x.Name);
NasBert\NasBertTrainer.cs (8)
323var outColumns = inputSchema.ToDictionary(x => x.Name); 433var outColumns = inputSchema.ToDictionary(x => x.Name); 458if (!inputSchema.TryFindColumn(SentenceColumn.Name, out var sentenceCol)) 459throw Host.ExceptSchemaMismatch(nameof(inputSchema), "sentence", SentenceColumn.Name); 461throw Host.ExceptSchemaMismatch(nameof(inputSchema), "sentence", SentenceColumn.Name, 466if (!inputSchema.TryFindColumn(SentenceColumn2.Name, out var sentenceCol2)) 467throw Host.ExceptSchemaMismatch(nameof(inputSchema), "sentence2", SentenceColumn2.Name); 469throw Host.ExceptSchemaMismatch(nameof(inputSchema), "sentence2", SentenceColumn2.Name,
NasBert\NerTrainer.cs (1)
419getSentence1 = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[Parent.SentenceColumn.Name]);
NasBert\SentenceSimilarityTrainer.cs (2)
276getSentence1 = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[Parent.SentenceColumn.Name]); 277getSentence2 = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[Parent.SentenceColumn2.Name]);
NasBert\TextClassificationTrainer.cs (4)
322getSentence1 = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[Parent.SentenceColumn.Name]); 324getSentence2 = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[Parent.SentenceColumn2.Name]); 353getSentence1 = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[Parent.SentenceColumn.Name]); 355getSentence2 = input.GetGetter<ReadOnlyMemory<char>>(input.Schema[Parent.SentenceColumn2.Name]);
Roberta\QATrainer.cs (2)
508var outColumns = inputSchema.ToDictionary(x => x.Name); 594var outColumns = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.TorchSharp.Tests (10)
NerTests.cs (3)
76Assert.Equal("outputColumn", estimatorSchema[2].Name); 155Assert.Equal("outputColumn", estimatorSchema[2].Name); 229Assert.Equal("outputColumn", estimatorSchema[2].Name);
QATests.cs (2)
47Assert.Equal("Answer", estimatorSchema[4].Name); 48Assert.Equal("Score", estimatorSchema[5].Name);
TextClassificationTests.cs (5)
105Assert.Equal("outputColumn", estimatorSchema[3].Name); 243Assert.Equal("outputColumn", estimatorSchema[3].Name); 327Assert.Equal("outputColumn", estimatorSchema[3].Name); 393Assert.Equal("Score", estimatorSchema[3].Name); 400Assert.Equal("Score", estimatorSchema[3].Name);
Microsoft.ML.Transforms (28)
CountFeatureSelection.cs (2)
167var result = inputSchema.ToDictionary(x => x.Name); 175throw _host.ExceptUserArg(nameof(inputSchema), $"Variable length column '{col.Name}' is not allowed");
CustomMappingTransformer.cs (2)
258var result = inputSchema.ToDictionary(x => x.Name); 277result[addedCol.Name] = addedCol;
Dracula\CountTableTransformer.cs (1)
323var result = inputSchema.ToDictionary(x => x.Name);
ExpressionTransformer.cs (1)
172var columnDictionary = inputSchema.ToDictionary(x => x.Name);
GcnTransform.cs (1)
913var result = inputSchema.ToDictionary(x => x.Name);
KeyToVectorMapping.cs (1)
470var result = inputSchema.ToDictionary(x => x.Name);
MissingValueDroppingTransformer.cs (3)
42var resultDic = inputSchema.ToDictionary(x => x.Name); 48throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", originalColumn.Name, "Vector", "Scalar"); 50throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", originalColumn.Name, "Single, Double or Key", originalColumn.ItemType.ToString());
MissingValueIndicatorTransformer.cs (1)
537var result = inputSchema.ToDictionary(x => x.Name);
MissingValueReplacing.cs (1)
1037var result = inputSchema.ToDictionary(x => x.Name);
MutualInformationFeatureSelection.cs (2)
231var result = inputSchema.ToDictionary(x => x.Name); 242throw _host.ExceptUserArg(nameof(inputSchema), $"Variable length column '{col.Name}' is not allowed");
RandomFourierFeaturizing.cs (1)
725var result = inputSchema.ToDictionary(x => x.Name);
StatefulCustomMappingTransformer.cs (2)
391var result = inputSchema.ToDictionary(x => x.Name); 410result[addedCol.Name] = addedCol;
Text\LdaTransform.cs (1)
1323var result = inputSchema.ToDictionary(x => x.Name);
Text\NgramHashingTransformer.cs (1)
1215var result = inputSchema.ToDictionary(x => x.Name);
Text\NgramTransform.cs (1)
1080var result = inputSchema.ToDictionary(x => x.Name);
Text\StopWordsRemovingTransformer.cs (2)
672var result = inputSchema.ToDictionary(x => x.Name); 1240var result = inputSchema.ToDictionary(x => x.Name);
Text\TextFeaturizingEstimator.cs (1)
634var result = inputSchema.ToDictionary(x => x.Name);
Text\TextNormalizing.cs (1)
581var result = inputSchema.ToDictionary(x => x.Name);
Text\TokenizingByCharacters.cs (1)
685var result = inputSchema.ToDictionary(x => x.Name);
Text\WordEmbeddingsExtractor.cs (1)
933var result = inputSchema.ToDictionary(x => x.Name);
Text\WordTokenizing.cs (1)
533var result = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.Vision (4)
DnnRetrainTransform.cs (2)
1256var result = inputSchema.ToDictionary(x => x.Name); 1257var resultDic = inputSchema.ToDictionary(x => x.Name);
ImageClassificationTrainer.cs (2)
652FeatureColumn.Name, LabelColumn.Name, _options.ScoreColumnName, _options.PredictedLabelColumnName);