VectorDataViewType 類別

定義

標準向量類型。 這個 的表示型別為 VBuffer<T> ,其中 type 參數位於 ItemType 中。

public sealed class VectorDataViewType : Microsoft.ML.Data.StructuredDataViewType
type VectorDataViewType = class
    inherit StructuredDataViewType
Public NotInheritable Class VectorDataViewType
Inherits StructuredDataViewType
繼承

建構函式

VectorDataViewType(PrimitiveDataViewType, ImmutableArray<Int32>)

建構潛在的多維度向量類型。

VectorDataViewType(PrimitiveDataViewType, Int32)

建構新的單維向量類型。

VectorDataViewType(PrimitiveDataViewType, Int32[])

建構潛在的多維度向量類型。

屬性

Dimensions

維度。 這一律會有至少一個專案。 所有值都會是非負值。 如同 Size ,零值表示向量類型會被視為在該維度上具有未知的長度。

IsKnownSize

這是否為具有已知大小的向量類型。 相當於 Size > 0

ItemType

此類型向量中儲存為值的專案類型。

RawType

這個 DataViewType 的原始 Type 。 請注意,這是原始表示類型,而不是 的完整資訊內容 DataViewType

(繼承來源 DataViewType)
Size

向量的大小。 值為零表示它是未知大小的向量。 已知大小的向量應該對應至一律具有相同 Length 的值,而其大小未知的向量可能會有 Length 值,其值會從記錄到記錄。 請注意,這一律是 中的 Dimensions 專案乘積。

方法

Equals(DataViewType)

標準向量類型。 這個 的表示型別為 VBuffer<T> ,其中 type 參數位於 ItemType 中。

Equals(Object)

標準向量類型。 這個 的表示型別為 VBuffer<T> ,其中 type 參數位於 ItemType 中。

GetHashCode()

標準向量類型。 這個 的表示型別為 VBuffer<T> ,其中 type 參數位於 ItemType 中。

ToString()

標準向量類型。 這個 的表示型別為 VBuffer<T> ,其中 type 參數位於 ItemType 中。

適用於