DataViewSchema.Annotations.Builder.Add 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.
Overloads
Add(DataViewSchema+Annotations, Func<String,Boolean>) |
Add some columns from |
Add(String, DataViewType, Delegate, DataViewSchema+Annotations) |
Add one annotation column, weakly-typed version. |
Add<TValue>(String, DataViewType, ValueGetter<TValue>, DataViewSchema+Annotations) |
Add one annotation column, strongly-typed version. |
Add(DataViewSchema+Annotations, Func<String,Boolean>)
Add some columns from annotations
into our new annotations, by applying selector
to all the names.
public void Add (Microsoft.ML.DataViewSchema.Annotations annotations, Func<string,bool> selector);
member this.Add : Microsoft.ML.DataViewSchema.Annotations * Func<string, bool> -> unit
Public Sub Add (annotations As DataViewSchema.Annotations, selector As Func(Of String, Boolean))
Parameters
- annotations
- DataViewSchema.Annotations
The annotations row to take values from.
Applies to
Add(String, DataViewType, Delegate, DataViewSchema+Annotations)
Add one annotation column, weakly-typed version.
public void Add (string name, Microsoft.ML.Data.DataViewType type, Delegate getter, Microsoft.ML.DataViewSchema.Annotations annotations = default);
member this.Add : string * Microsoft.ML.Data.DataViewType * Delegate * Microsoft.ML.DataViewSchema.Annotations -> unit
Public Sub Add (name As String, type As DataViewType, getter As Delegate, Optional annotations As DataViewSchema.Annotations = Nothing)
Parameters
- name
- String
The annotation name.
- type
- DataViewType
The annotation type.
- getter
- Delegate
The getter delegate that provides the value. Note that the type of the getter is still checked inside this method.
- 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
Add<TValue>(String, DataViewType, ValueGetter<TValue>, DataViewSchema+Annotations)
Add one annotation column, strongly-typed version.
public void Add<TValue> (string name, Microsoft.ML.Data.DataViewType type, Microsoft.ML.ValueGetter<TValue> getter, Microsoft.ML.DataViewSchema.Annotations annotations = default);
member this.Add : string * Microsoft.ML.Data.DataViewType * Microsoft.ML.ValueGetter<'Value> * Microsoft.ML.DataViewSchema.Annotations -> unit
Public Sub Add(Of TValue) (name As String, type As DataViewType, getter As ValueGetter(Of TValue), Optional annotations As DataViewSchema.Annotations = Nothing)
Type Parameters
- TValue
The type of the value.
Parameters
- name
- String
The annotation name.
- type
- DataViewType
The annotation type.
- getter
- ValueGetter<TValue>
The getter delegate.
- 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).