58 references to Add
Microsoft.ML.Core (2)
Data\AnnotationBuilderExtensions.cs (2)
19
=> builder.
Add
(AnnotationUtils.Kinds.SlotNames, new VectorDataViewType(TextDataViewType.Instance, size), getter);
30
=> builder.
Add
(AnnotationUtils.Kinds.KeyValues, new VectorDataViewType(valueType, size), getter);
Microsoft.ML.Data (26)
Deprecated\Instances\HeaderSchema.cs (1)
37
metadataBuilder.
Add
(AnnotationUtils.Kinds.SlotNames, _slotNamesType,
Evaluators\MultiOutputRegressionEvaluator.cs (3)
566
builder.
Add
(AnnotationUtils.Kinds.ScoreColumnKind, TextDataViewType.Instance, getter);
568
builder.
Add
(AnnotationUtils.Kinds.ScoreValueKind, TextDataViewType.Instance, getter);
570
builder.
Add
(AnnotationUtils.Kinds.ScoreColumnSetId, AnnotationUtils.ScoreColumnSetIdType, uintGetter);
Prediction\CalibratorCatalog.cs (4)
294
builder.
Add
(setIdCol.Name, setIdType, annotation.GetGetter<uint>(setIdCol));
301
builder.
Add
(kindCol.Name, kindCol.Type, annotation.GetGetter<ReadOnlyMemory<char>>(kindCol));
302
builder.
Add
(valueKindCol.Name, valueKindCol.Type, annotation.GetGetter<ReadOnlyMemory<char>>(valueKindCol));
305
builder.
Add
(AnnotationUtils.Kinds.IsNormalized, BooleanDataViewType.Instance, (ref bool value) => value = true);
Scorers\MulticlassClassificationScorer.cs (1)
324
meta.
Add
(labelNameKind, labelNameType, labelNameGetter);
Scorers\PredictedLabelScorerBase.cs (1)
89
builder.
Add
(AnnotationUtils.Kinds.KeyValues, metaCol.Type, meta.GetGetter<T>(metaCol));
Scorers\ScoreSchemaFactory.cs (7)
30
metadataBuilder.
Add
(AnnotationUtils.Kinds.ScoreColumnKind, TextDataViewType.Instance,
32
metadataBuilder.
Add
(AnnotationUtils.Kinds.ScoreValueKind, TextDataViewType.Instance,
62
probabilityMetadataBuilder.
Add
(AnnotationUtils.Kinds.IsNormalized, BooleanDataViewType.Instance, (ref bool value) => { value = true; });
63
probabilityMetadataBuilder.
Add
(AnnotationUtils.Kinds.ScoreColumnKind, TextDataViewType.Instance,
65
probabilityMetadataBuilder.
Add
(AnnotationUtils.Kinds.ScoreValueKind, TextDataViewType.Instance,
127
metadataBuilder.
Add
(AnnotationUtils.Kinds.ScoreColumnKind, TextDataViewType.Instance,
129
metadataBuilder.
Add
(AnnotationUtils.Kinds.ScoreValueKind, TextDataViewType.Instance,
Transforms\ColumnConcatenatingTransformer.cs (2)
581
metadata.
Add
(AnnotationUtils.Kinds.IsNormalized, BooleanDataViewType.Instance, (ValueGetter<bool>)GetIsNormalized);
585
metadata.
Add
(AnnotationUtils.Kinds.CategoricalSlotRanges, _categoricalRangeType, (ValueGetter<VBuffer<int>>)GetCategoricalSlotRanges);
Transforms\KeyToVector.cs (3)
340
builder.
Add
(AnnotationUtils.Kinds.SlotNames, slotNamesType, getter);
350
builder.
Add
(AnnotationUtils.Kinds.CategoricalSlotRanges, AnnotationUtils.GetCategoricalType(srcValueCount), getter);
359
builder.
Add
(AnnotationUtils.Kinds.IsNormalized, BooleanDataViewType.Instance, getter);
Transforms\Normalizer.cs (1)
746
builder.
Add
(AnnotationUtils.Kinds.IsNormalized, BooleanDataViewType.Instance, (ValueGetter<bool>)IsNormalizedGetter);
Transforms\SlotsDroppingTransformer.cs (2)
847
builder.
Add
(AnnotationUtils.Kinds.SlotNames, new VectorDataViewType(TextDataViewType.Instance, dstLength), slotNamesGetter);
864
builder.
Add
(AnnotationUtils.Kinds.CategoricalSlotRanges, AnnotationUtils.GetCategoricalType(dst.Length / 2), categoricalSlotRangesGetter);
Transforms\TypeConverting.cs (1)
460
builder.
Add
(AnnotationUtils.Kinds.IsNormalized, BooleanDataViewType.Instance, getter);
Microsoft.ML.DataView (1)
DataViewSchema.cs (1)
347
Add
(name, type, (ref TValue dst) => dst = value, annotations);
Microsoft.ML.FastTree (5)
TreeEnsembleFeaturizer.cs (5)
139
treeIdMetadataBuilder.
Add
(AnnotationUtils.Kinds.SlotNames, AnnotationUtils.GetNamesType(treeValueType.Size),
151
leafIdMetadataBuilder.
Add
(AnnotationUtils.Kinds.SlotNames, AnnotationUtils.GetNamesType(leafIdType.Size),
153
leafIdMetadataBuilder.
Add
(AnnotationUtils.Kinds.IsNormalized, BooleanDataViewType.Instance, (ref bool value) => value = true);
164
pathIdMetadataBuilder.
Add
(AnnotationUtils.Kinds.SlotNames, AnnotationUtils.GetNamesType(pathIdType.Size),
166
pathIdMetadataBuilder.
Add
(AnnotationUtils.Kinds.IsNormalized, BooleanDataViewType.Instance, (ref bool value) => value = true);
Microsoft.ML.StandardTrainers (5)
Standard\LinearModelParameters.cs (1)
383
builder.
Add
("Weights", colType, (ref VBuffer<float> dst) => Weight.CopyTo(ref dst), subBuilder.ToAnnotations());
Standard\ModelStatistics.cs (4)
583
builder.
Add
("Estimate", colType, (ref VBuffer<float> dst) => estimate.CopyTo(ref dst), subMeta);
584
builder.
Add
("StandardError", colType, (ref VBuffer<float> dst) => stdErr.CopyTo(ref dst), subMeta);
585
builder.
Add
("ZScore", colType, (ref VBuffer<float> dst) => zScore.CopyTo(ref dst), subMeta);
586
builder.
Add
("PValue", colType, (ref VBuffer<float> dst) => pValue.CopyTo(ref dst), subMeta);
Microsoft.ML.TensorFlow (2)
TensorflowUtils.cs (2)
65
metadataBuilder.
Add
(TensorflowOperatorTypeKind, TextDataViewType.Instance, (ref ReadOnlyMemory<char> value) => value = op.OpType.AsMemory());
76
metadataBuilder.
Add
(TensorflowUpstreamOperatorsKind, new VectorDataViewType(TextDataViewType.Instance, op.NumInputs),
Microsoft.ML.Tests (3)
FakeSchemaTest.cs (1)
24
metadataBuilder.
Add
("M", NumberDataViewType.Single, (ref float v) => v = 484f);
Transformers\HashTests.cs (2)
166
builder.
Add
("Foo", new VectorDataViewType(type, vecLen), (ref VBuffer<T> dst) => denseVec.CopyTo(ref dst));
197
builder.
Add
("Foo", new VectorDataViewType(type, vecLen), (ref VBuffer<T> dst) => sparseVec.CopyTo(ref dst));
Microsoft.ML.TorchSharp (9)
AutoFormerV2\ObjectDetectionTrainer.cs (3)
759
meta.
Add
(AnnotationUtils.Kinds.ScoreColumnKind, TextDataViewType.Instance, (ref ReadOnlyMemory<char> value) => { value = AnnotationUtils.Const.ScoreColumnKind.MulticlassClassification.AsMemory(); });
760
meta.
Add
(AnnotationUtils.Kinds.ScoreColumnSetId, AnnotationUtils.ScoreColumnSetIdType, GetScoreColumnSetId(InputSchema));
761
meta.
Add
(AnnotationUtils.Kinds.ScoreValueKind, TextDataViewType.Instance, (ref ReadOnlyMemory<char> value) => { value = AnnotationUtils.Const.ScoreValueKind.Score.AsMemory(); });
NasBert\NasBertTrainer.cs (3)
525
meta.
Add
(AnnotationUtils.Kinds.ScoreColumnKind, TextDataViewType.Instance, (ref ReadOnlyMemory<char> value) => { value = AnnotationUtils.Const.ScoreColumnKind.MulticlassClassification.AsMemory(); });
526
meta.
Add
(AnnotationUtils.Kinds.ScoreColumnSetId, AnnotationUtils.ScoreColumnSetIdType, GetScoreColumnSetId(InputSchema));
527
meta.
Add
(AnnotationUtils.Kinds.ScoreValueKind, TextDataViewType.Instance, (ref ReadOnlyMemory<char> value) => { value = AnnotationUtils.Const.ScoreValueKind.Score.AsMemory(); });
Roberta\QATrainer.cs (3)
741
meta.
Add
(AnnotationUtils.Kinds.ScoreColumnKind, TextDataViewType.Instance, (ref ReadOnlyMemory<char> value) => { value = AnnotationUtils.Const.ScoreColumnKind.MulticlassClassification.AsMemory(); });
742
meta.
Add
(AnnotationUtils.Kinds.ScoreColumnSetId, AnnotationUtils.ScoreColumnSetIdType, GetScoreColumnSetId(InputSchema));
743
meta.
Add
(AnnotationUtils.Kinds.ScoreValueKind, TextDataViewType.Instance, (ref ReadOnlyMemory<char> value) => { value = AnnotationUtils.Const.ScoreValueKind.Score.AsMemory(); });
Microsoft.ML.Transforms (5)
GcnTransform.cs (1)
354
builder.
Add
(AnnotationUtils.Kinds.IsNormalized, BooleanDataViewType.Instance, getter);
KeyToVectorMapping.cs (2)
252
builder.
Add
(AnnotationUtils.Kinds.IsNormalized, BooleanDataViewType.Instance, normalizeGetter);
263
builder.
Add
(AnnotationUtils.Kinds.SlotNames, slotNamesType, getter);
MissingValueIndicatorTransformer.cs (1)
216
builder.
Add
(AnnotationUtils.Kinds.IsNormalized, BooleanDataViewType.Instance, getter);
Text\NgramHashingTransformer.cs (1)
625
builder.
Add
(AnnotationUtils.Kinds.SlotNames, _parent._slotNamesTypes[i], getter);