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