共用方式為


DataViewSchema.Annotations.Builder.AddPrimitiveValue<TValue> 方法

定義

為基本值型別新增一個批註資料行。

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)

類型參數

TValue

參數

name
String

批註名稱。

type
PrimitiveDataViewType

註解類型。

value
TValue

註解的值。

annotations
DataViewSchema.Annotations

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

適用於