DataViewSchema.Annotations.Builder.AddPrimitiveValue<TValue> Method

Definition

Add one annotation column for a primitive value type.

public void AddPrimitiveValue<TValue> (string name, Microsoft.ML.Data.PrimitiveDataViewType type, TValue value, Microsoft.ML.DataViewSchema.Annotations annotations = default);
member this.AddPrimitiveValue : string * Microsoft.ML.Data.PrimitiveDataViewType * 'Value * Microsoft.ML.DataViewSchema.Annotations -> unit
Public Sub AddPrimitiveValue(Of TValue) (name As String, type As PrimitiveDataViewType, value As TValue, Optional annotations As DataViewSchema.Annotations = Nothing)

Type Parameters

TValue

Parameters

name
String

The annotation name.

type
PrimitiveDataViewType

The annotation type.

value
TValue

The value of the annotation.

annotations
DataViewSchema.Annotations

Annotations of the input column. Note that annotations on an annotation column is somewhat rare except for certain types (for example, slot names for a vector, key values for something of key type).

Applies to