共用方式為


DataViewSchema.Annotations.Builder.Add 方法

定義

多載

Add(DataViewSchema+Annotations, Func<String,Boolean>)

將一些資料行從 annotations 新增至新的批註,方法是套用 selector 至所有名稱。

Add(String, DataViewType, Delegate, DataViewSchema+Annotations)

新增一個批註資料行,弱型別版本。

Add<TValue>(String, DataViewType, ValueGetter<TValue>, DataViewSchema+Annotations)

新增一個批註資料行,強型別版本。

Add(DataViewSchema+Annotations, Func<String,Boolean>)

將一些資料行從 annotations 新增至新的批註,方法是套用 selector 至所有名稱。

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))

參數

annotations
DataViewSchema.Annotations

要從中取得值的批註資料列。

selector
Func<String,Boolean>

述詞,描述要保留哪些批註資料行。

適用於

Add(String, DataViewType, Delegate, DataViewSchema+Annotations)

新增一個批註資料行,弱型別版本。

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)

參數

name
String

批註名稱。

type
DataViewType

註解類型。

getter
Delegate

提供值的 getter 委派。 請注意,getter 的類型仍會在此方法內檢查。

annotations
DataViewSchema.Annotations

輸入資料行的注釋。 請注意,批註資料行上的批註有點罕見,但某些類型 (例如向量的位置名稱、索引鍵類型的索引鍵值) 。

適用於

Add<TValue>(String, DataViewType, ValueGetter<TValue>, DataViewSchema+Annotations)

新增一個批註資料行,強型別版本。

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)

類型參數

TValue

值的類型。

參數

name
String

批註名稱。

type
DataViewType

註解類型。

getter
ValueGetter<TValue>

getter 委派。

annotations
DataViewSchema.Annotations

輸入資料行的注釋。 請注意,批註資料行上的批註有點罕見,但某些類型 (例如向量的位置名稱、索引鍵類型的索引鍵值) 。

適用於