共用方式為


SchemaAnnotationsExtensions.HasKeyValues 方法

定義

true如果輸入資料行為 VectorDataViewType ,且 SlotNames 其 具有 其 ItemTypeTextDataViewType 的注釋 VectorDataViewType ,且其符合此輸入向量大小,則會傳 Size 回 。

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

傳回

適用於

另請參閱