17 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 (4)
Prediction\CalibratorCatalog.cs (3)
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));
Scorers\MulticlassClassificationScorer.cs (1)
324
meta.
Add
(labelNameKind, labelNameType, labelNameGetter);
Microsoft.ML.DataView (1)
DataViewSchema.cs (1)
347
Add
(name, type, (ref TValue dst) => dst = value, annotations);
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)
64
metadataBuilder.
Add
(TensorflowOperatorTypeKind, TextDataViewType.Instance, (ref ReadOnlyMemory<char> value) => value = op.OpType.AsMemory());
75
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));