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