VectorDataViewType 建構函式

定義

多載

VectorDataViewType(PrimitiveDataViewType, ImmutableArray<Int32>)

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

VectorDataViewType(PrimitiveDataViewType, Int32)

建構新的單一維度向量類型。

VectorDataViewType(PrimitiveDataViewType, Int32[])

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

VectorDataViewType(PrimitiveDataViewType, ImmutableArray<Int32>)

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

public VectorDataViewType (Microsoft.ML.Data.PrimitiveDataViewType itemType, System.Collections.Immutable.ImmutableArray<int> dimensions);
new Microsoft.ML.Data.VectorDataViewType : Microsoft.ML.Data.PrimitiveDataViewType * System.Collections.Immutable.ImmutableArray<int> -> Microsoft.ML.Data.VectorDataViewType
Public Sub New (itemType As PrimitiveDataViewType, dimensions As ImmutableArray(Of Integer))

參數

itemType
PrimitiveDataViewType

向量中包含的專案類型。

dimensions
ImmutableArray<Int32>

維度。 請注意,就像 一樣 Dimensions ,所有非負值都必須是非空白。 此外,因為 Size 是 的 Dimensions 乘積,所以將所有這些值相乘的結果不得溢位 Int32

適用於

VectorDataViewType(PrimitiveDataViewType, Int32)

建構新的單一維度向量類型。

public VectorDataViewType (Microsoft.ML.Data.PrimitiveDataViewType itemType, int size = 0);
new Microsoft.ML.Data.VectorDataViewType : Microsoft.ML.Data.PrimitiveDataViewType * int -> Microsoft.ML.Data.VectorDataViewType
Public Sub New (itemType As PrimitiveDataViewType, Optional size As Integer = 0)

參數

itemType
PrimitiveDataViewType

向量中包含的專案類型。

size
Int32

單一維度的大小。

適用於

VectorDataViewType(PrimitiveDataViewType, Int32[])

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

public VectorDataViewType (Microsoft.ML.Data.PrimitiveDataViewType itemType, params int[] dimensions);
new Microsoft.ML.Data.VectorDataViewType : Microsoft.ML.Data.PrimitiveDataViewType * int[] -> Microsoft.ML.Data.VectorDataViewType
Public Sub New (itemType As PrimitiveDataViewType, ParamArray dimensions As Integer())

參數

itemType
PrimitiveDataViewType

向量中包含的專案類型。

dimensions
Int32[]

維度。 請注意,就像 一樣 Dimensions ,所有非負值都必須是非空白。 此外,因為 Size 是 的 Dimensions 乘積,所以將所有這些值相乘的結果不得溢位 Int32

適用於