語言

DataViewSchema.Annotations.Builder.Add 方法

定義

多載

名稱 Description
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>)

來源:
DataViewSchema.cs
來源:
DataViewSchema.cs
來源:
DataViewSchema.cs

將一些欄位 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)

來源:
DataViewSchema.cs
來源:
DataViewSchema.cs
來源:
DataViewSchema.cs

新增一欄註解,弱型別版本。

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 的型別。

annotations
DataViewSchema.Annotations

輸入欄位的註解。 請注意,註解欄位上的註解通常較少見,除非是某些類型(例如向量的槽位名稱、某個鍵型別的鍵值)。

適用於

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

來源:
DataViewSchema.cs
來源:
DataViewSchema.cs
來源:
DataViewSchema.cs

新增一欄註解,強型版本。

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>

獲得者代表。

annotations
DataViewSchema.Annotations

輸入欄位的註解。 請注意,註解欄位上的註解通常較少見,除非是某些類型(例如向量的槽位名稱、某個鍵型別的鍵值)。

適用於