語言

SchemaAnnotationsExtensions.HasKeyValues 方法

定義

若輸入欄位為 VectorDataViewType,且 具有 SlotNames 註釋,VectorDataViewType且 TextDataViewTypeItemType 為 ,Size且 的 與該輸入向量大小相符,則返回true。

public static bool HasKeyValues(this Microsoft.ML.DataViewSchema.Column column, Microsoft.ML.Data.PrimitiveDataViewType keyValueItemType = default);
static member HasKeyValues : Microsoft.ML.DataViewSchema.Column * Microsoft.ML.Data.PrimitiveDataViewType -> bool
<Extension()>
Public Function HasKeyValues (column As DataViewSchema.Column, Optional keyValueItemType As PrimitiveDataViewType = Nothing) As Boolean

參數

column
DataViewSchema.Column

將被查詢的欄位 Annotations 。

keyValueItemType
PrimitiveDataViewType

查詢的個別鍵值類型。 一個常見但非普遍的類型是 Instance,若未指定,則假設值為 Instance。

傳回

適用於

另請參閱