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)
294builder.Add(setIdCol.Name, setIdType, annotation.GetGetter<uint>(setIdCol)); 301builder.Add(kindCol.Name, kindCol.Type, annotation.GetGetter<ReadOnlyMemory<char>>(kindCol)); 302builder.Add(valueKindCol.Name, valueKindCol.Type, annotation.GetGetter<ReadOnlyMemory<char>>(valueKindCol));
Scorers\MulticlassClassificationScorer.cs (1)
324meta.Add(labelNameKind, labelNameType, labelNameGetter);
Microsoft.ML.DataView (1)
DataViewSchema.cs (1)
347Add(name, type, (ref TValue dst) => dst = value, annotations);
Microsoft.ML.StandardTrainers (5)
Standard\LinearModelParameters.cs (1)
383builder.Add("Weights", colType, (ref VBuffer<float> dst) => Weight.CopyTo(ref dst), subBuilder.ToAnnotations());
Standard\ModelStatistics.cs (4)
583builder.Add("Estimate", colType, (ref VBuffer<float> dst) => estimate.CopyTo(ref dst), subMeta); 584builder.Add("StandardError", colType, (ref VBuffer<float> dst) => stdErr.CopyTo(ref dst), subMeta); 585builder.Add("ZScore", colType, (ref VBuffer<float> dst) => zScore.CopyTo(ref dst), subMeta); 586builder.Add("PValue", colType, (ref VBuffer<float> dst) => pValue.CopyTo(ref dst), subMeta);
Microsoft.ML.TensorFlow (2)
TensorflowUtils.cs (2)
64metadataBuilder.Add(TensorflowOperatorTypeKind, TextDataViewType.Instance, (ref ReadOnlyMemory<char> value) => value = op.OpType.AsMemory()); 75metadataBuilder.Add(TensorflowUpstreamOperatorsKind, new VectorDataViewType(TextDataViewType.Instance, op.NumInputs),
Microsoft.ML.Tests (3)
FakeSchemaTest.cs (1)
24metadataBuilder.Add("M", NumberDataViewType.Single, (ref float v) => v = 484f);
Transformers\HashTests.cs (2)
166builder.Add("Foo", new VectorDataViewType(type, vecLen), (ref VBuffer<T> dst) => denseVec.CopyTo(ref dst)); 197builder.Add("Foo", new VectorDataViewType(type, vecLen), (ref VBuffer<T> dst) => sparseVec.CopyTo(ref dst));