DataViewSchema.Annotations.Builder.AddPrimitiveValue<TValue> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
為基本值型別新增一個批註資料行。
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
批註名稱。
註解類型。
- value
- TValue
註解的值。
- annotations
- DataViewSchema.Annotations
輸入資料行的注釋。 請注意,批註資料行上的注釋有些罕見,但某些類型 (例如向量的位置名稱、索引鍵類型的索引鍵值) 。