DataViewSchema.Annotations.Builder.AddPrimitiveValue<TValue> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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).