72 references to ToAnnotations
Microsoft.ML.Data (34)
Data\SchemaDefinition.cs (1)
284return builder.ToAnnotations();
DataLoadSave\Binary\BinaryLoader.cs (1)
661schemaBuilder.AddColumn(loadedColumn.Name, loadedColumn.Type, metadataBuilder.ToAnnotations());
DataLoadSave\FakeSchema.cs (1)
42builder.AddColumn(shape[i].Name, MakeColumnType(shape[i]), metaBuilder.ToAnnotations());
DataLoadSave\Text\TextLoader.cs (1)
1056schemaBuilder.AddColumn(info.Name, info.ColType, metadataBuilder.ToAnnotations());
DataView\ArrayDataViewBuilder.cs (1)
228schemaBuilder.AddColumn(builder._names[i], _columns[i].Type, meta.ToAnnotations());
DataView\DataViewConstructionUtils.cs (1)
816columns[i] = new DataViewSchema.DetachedColumn(col.ColumnName, col.ColumnType, meta.ToAnnotations());
Deprecated\Instances\HeaderSchema.cs (1)
40schemaBuilder.AddColumn(RoleMappedSchema.ColumnRole.Feature.Value, _colType, metadataBuilder.ToAnnotations());
Evaluators\ClusteringEvaluator.cs (2)
733infos[SortedClusterCol] = new DataViewSchema.DetachedColumn(SortedClusters, _types[SortedClusterCol], sortedClusters.ToAnnotations()); 734infos[SortedClusterScoreCol] = new DataViewSchema.DetachedColumn(SortedClusterScores, _types[SortedClusterScoreCol], builder.ToAnnotations());
Evaluators\MulticlassClassificationEvaluator.cs (3)
814infos[AssignedCol] = new DataViewSchema.DetachedColumn(Assigned, _types[AssignedCol], assignedColKeyValues.ToAnnotations()); 825infos[SortedScoresCol] = new DataViewSchema.DetachedColumn(SortedScores, _types[SortedScoresCol], sortedScores.ToAnnotations()); 826infos[SortedClassesCol] = new DataViewSchema.DetachedColumn(SortedClasses, _types[SortedClassesCol], sortedClasses.ToAnnotations());
Evaluators\MultiOutputRegressionEvaluator.cs (2)
556labelMetadata = builder.ToAnnotations(); 571scoreMetadata = builder.ToAnnotations();
Evaluators\QuantileRegressionEvaluator.cs (2)
362infos[L1Col] = new DataViewSchema.DetachedColumn(L1, _outputType, l1Metadata.ToAnnotations()); 363infos[L2Col] = new DataViewSchema.DetachedColumn(L2, _outputType, l2Metadata.ToAnnotations());
Prediction\CalibratorCatalog.cs (1)
309new DataViewSchema.DetachedColumn(DefaultColumnNames.Probability, NumberDataViewType.Single, builder.ToAnnotations())
Scorers\FeatureContributionCalculation.cs (1)
345schemaBuilder.AddColumn(DefaultColumnNames.FeatureContributions, featureContributionType, metadataBuilder.ToAnnotations());
Scorers\MulticlassClassificationScorer.cs (1)
333builder.AddColumn(partialSchema[i].Name, partialSchema[i].Type, meta.ToAnnotations());
Scorers\PredictedLabelScorerBase.cs (1)
84return builder.ToAnnotations();
Scorers\ScoreSchemaFactory.cs (4)
37schemaBuilder.AddColumn(scoreColumnName, scoreType, metadataBuilder.ToAnnotations()); 69schemaBuilder.AddColumn(probabilityColumnName, NumberDataViewType.Single, probabilityMetadataBuilder.ToAnnotations()); 103schemaBuilder.AddColumn(partialSchema[0].Name, partialSchema[0].Type, metadataBuilder.ToAnnotations()); 134schemaBuilder.AddColumn(AnnotationUtils.Const.ScoreValueKind.PredictedLabel, scoreType, metadataBuilder.ToAnnotations());
Transforms\ColumnBindingsBase.cs (1)
286builder.AddColumn(inputBindings.GetColumnName(i), inputBindings.GetColumnType(i), meta.ToAnnotations());
Transforms\ColumnConcatenatingTransformer.cs (1)
587return new DataViewSchema.DetachedColumn(_columnOptions.Name, OutputType, metadata.ToAnnotations());
Transforms\FeatureContributionCalculationTransformer.cs (1)
200return new[] { new DataViewSchema.DetachedColumn(DefaultColumnNames.FeatureContributions, new VectorDataViewType(NumberDataViewType.Single, _featureColumnType.Size), builder.ToAnnotations()) };
Transforms\Hashing.cs (1)
1341result[i] = new DataViewSchema.DetachedColumn(_parent.ColumnPairs[i].outputColumnName, _dstTypes[i], meta.ToAnnotations());
Transforms\KeyToValue.cs (1)
178result[i] = new DataViewSchema.DetachedColumn(_parent.ColumnPairs[i].outputColumnName, _types[i], meta.ToAnnotations());
Transforms\KeyToVector.cs (1)
298result[i] = new DataViewSchema.DetachedColumn(_parent.ColumnPairs[i].outputColumnName, _types[i], builder.ToAnnotations());
Transforms\Normalizer.cs (1)
748return builder.ToAnnotations();
Transforms\SlotsDroppingTransformer.cs (1)
872result[iinfo] = new DataViewSchema.DetachedColumn(_parent.ColumnPairs[iinfo].outputColumnName, _dstTypes[iinfo], builder.ToAnnotations());
Transforms\TypeConverting.cs (1)
462result[i] = new DataViewSchema.DetachedColumn(_parent._columns[i].Name, _types[i], builder.ToAnnotations());
Transforms\ValueToKeyMappingTransformer.cs (1)
751result[i] = new DataViewSchema.DetachedColumn(_parent.ColumnPairs[i].outputColumnName, _types[i], builder.ToAnnotations());
Microsoft.ML.FastTree (3)
TreeEnsembleFeaturizer.cs (3)
143schemaBuilder.AddColumn(treesColumnName, treeValueType, treeIdMetadataBuilder.ToAnnotations()); 156schemaBuilder.AddColumn(leavesColumnName, leafIdType, leafIdMetadataBuilder.ToAnnotations()); 169schemaBuilder.AddColumn(pathsColumnName, pathIdType, pathIdMetadataBuilder.ToAnnotations());
Microsoft.ML.OnnxTransformer (1)
OnnxTransform.cs (1)
578info[i] = new DataViewSchema.DetachedColumn(columnName, _parent.OutputTypes[i], builder.ToAnnotations());
Microsoft.ML.StandardTrainers (5)
Standard\LinearModelParameters.cs (2)
383builder.Add("Weights", colType, (ref VBuffer<float> dst) => Weight.CopyTo(ref dst), subBuilder.ToAnnotations()); 384return AnnotationUtils.AnnotationsAsRow(builder.ToAnnotations());
Standard\ModelStatistics.cs (3)
190return builder.ToAnnotations(); 580var subMeta = subMetaBuilder.ToAnnotations(); 588return builder.ToAnnotations();
Microsoft.ML.TensorFlow (2)
TensorflowUtils.cs (2)
85schemaBuilder.AddColumn(op.name, mlType, metadataBuilder.ToAnnotations()); 112schemaBuilder.AddColumn(op.name, columnType, metadataBuilder.ToAnnotations());
Microsoft.ML.Tests (4)
FakeSchemaTest.cs (1)
28schemaBuilder.AddColumn("C", NumberDataViewType.Int32, metadataBuilder.ToAnnotations());
Transformers\HashTests.cs (3)
135var inRow = AnnotationUtils.AnnotationsAsRow(builder.ToAnnotations()); 167inRow = AnnotationUtils.AnnotationsAsRow(builder.ToAnnotations()); 198inRow = AnnotationUtils.AnnotationsAsRow(builder.ToAnnotations());
Microsoft.ML.TimeSeries (2)
SequentialAnomalyDetectionTransformBase.cs (1)
336info[0] = new DataViewSchema.DetachedColumn(_parent.OutputColumnName, new VectorDataViewType(NumberDataViewType.Double, _parent.OutputLength), meta.ToAnnotations());
SrCnnTransformBase.cs (1)
179info[0] = new DataViewSchema.DetachedColumn(_parent.OutputColumnName, new VectorDataViewType(NumberDataViewType.Double, _parent.OutputLength), meta.ToAnnotations());
Microsoft.ML.TorchSharp (9)
AutoFormerV2\ObjectDetectionTrainer.cs (3)
706var labelCol = new DataViewSchema.DetachedColumn(options.LabelColumnName, type, meta.ToAnnotations()); 767info[0] = new DataViewSchema.DetachedColumn(_parent.Options.PredictedLabelColumnName, new VectorDataViewType(new KeyDataViewType(typeof(uint), _parent.Options.NumberOfClasses)), labelBuilder.ToAnnotations()); 769info[1] = new DataViewSchema.DetachedColumn(_parent.Options.ScoreColumnName, new VectorDataViewType(NumberDataViewType.Single), meta.ToAnnotations());
NasBert\NasBertTrainer.cs (3)
534info[0] = new DataViewSchema.DetachedColumn(Parent.Options.PredictionColumnName, new KeyDataViewType(typeof(uint), Parent.Options.NumberOfClasses), labelBuilder.ToAnnotations()); 536info[1] = new DataViewSchema.DetachedColumn(Parent.Options.ScoreColumnName, new VectorDataViewType(NumberDataViewType.Single, Parent.Options.NumberOfClasses), meta.ToAnnotations()); 548info[0] = new DataViewSchema.DetachedColumn(Parent.Options.PredictionColumnName, new VectorDataViewType(new KeyDataViewType(typeof(uint), Parent.Options.NumberOfClasses - 1)), labelBuilder.ToAnnotations());
NasBert\NerTrainer.cs (1)
352var labelCol = new DataViewSchema.DetachedColumn(options.LabelColumnName, type, meta.ToAnnotations());
NasBert\TextClassificationTrainer.cs (1)
288var labelCol = new DataViewSchema.DetachedColumn(options.LabelColumnName, type, meta.ToAnnotations());
Roberta\QATrainer.cs (1)
748info[1] = new DataViewSchema.DetachedColumn(_parent.Options.ScoreColumnName, new VectorDataViewType(NumberDataViewType.Single), meta.ToAnnotations());
Microsoft.ML.Transforms (12)
Dracula\CountTableTransformer.cs (1)
625outputCols[i] = new DataViewSchema.DetachedColumn(_parent.ColumnPairs[i].outputColumnName, type, builder.ToAnnotations());
ExpressionTransformer.cs (1)
961outputColumns[i] = new DataViewSchema.DetachedColumn(_parent._columns[i].OutputColumnName, type, builder.ToAnnotations());
GcnTransform.cs (1)
355result[i] = new DataViewSchema.DetachedColumn(_parent.ColumnPairs[i].outputColumnName, _types[i], builder.ToAnnotations());
GroupTransform.cs (1)
301schemaBuilder.AddColumn(groupValueColumnName, aggregatedResultType, metadataBuilder.ToAnnotations());
KeyToVectorMapping.cs (1)
213result[i] = new DataViewSchema.DetachedColumn(_parent.ColumnPairs[i].outputColumnName, _types[i], builder.ToAnnotations());
MissingValueDroppingTransformer.cs (1)
212result[i] = new DataViewSchema.DetachedColumn(_parent.ColumnPairs[i].outputColumnName, _types[i], builder.ToAnnotations());
MissingValueIndicatorTransformer.cs (1)
217result[iinfo] = new DataViewSchema.DetachedColumn(_infos[iinfo].Name, _infos[iinfo].OutputType, builder.ToAnnotations());
MissingValueReplacing.cs (1)
617result[i] = new DataViewSchema.DetachedColumn(_parent.ColumnPairs[i].outputColumnName, _types[i], builder.ToAnnotations());
Text\NgramHashingTransformer.cs (1)
612result[i] = new DataViewSchema.DetachedColumn(_parent._columns[i].Name, _types[i], builder.ToAnnotations());
Text\NgramTransform.cs (1)
505result[i] = new DataViewSchema.DetachedColumn(_parent.ColumnPairs[i].outputColumnName, _types[i], builder.ToAnnotations());
Text\TokenizingByCharacters.cs (1)
278result[i] = new DataViewSchema.DetachedColumn(_parent.ColumnPairs[i].outputColumnName, _type, builder.ToAnnotations());
UngroupTransform.cs (1)
314schemaBuilder.AddColumn(inputSchema[i].Name, inputSchema[i].Type.GetItemType(), metadataBuilder.ToAnnotations());