Partilhar via


VectorDataViewType Construtores

Definição

Sobrecargas

VectorDataViewType(PrimitiveDataViewType, ImmutableArray<Int32>)

Constrói um tipo de vetor potencialmente multidimensional.

VectorDataViewType(PrimitiveDataViewType, Int32)

Constrói um novo tipo de vetor unidimensional.

VectorDataViewType(PrimitiveDataViewType, Int32[])

Constrói um tipo de vetor potencialmente multidimensional.

VectorDataViewType(PrimitiveDataViewType, ImmutableArray<Int32>)

Constrói um tipo de vetor potencialmente multidimensional.

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))

Parâmetros

itemType
PrimitiveDataViewType

O tipo dos itens contidos no vetor.

dimensions
ImmutableArray<Int32>

As dimensões. Observe que, por exemplo Dimensions, deve ser não vazio, com todos os valores não negativos. Além disso, como Size é o produto de Dimensions, o resultado da multiplicação de todos esses valores juntos não deve estourar Int32.

Aplica-se a

VectorDataViewType(PrimitiveDataViewType, Int32)

Constrói um novo tipo de vetor unidimensional.

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)

Parâmetros

itemType
PrimitiveDataViewType

O tipo dos itens contidos no vetor.

size
Int32

O tamanho da dimensão única.

Aplica-se a

VectorDataViewType(PrimitiveDataViewType, Int32[])

Constrói um tipo de vetor potencialmente multidimensional.

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())

Parâmetros

itemType
PrimitiveDataViewType

O tipo dos itens contidos no vetor.

dimensions
Int32[]

As dimensões. Observe que, por exemplo Dimensions, deve ser não vazio, com todos os valores não negativos. Além disso, como Size é o produto de Dimensions, o resultado da multiplicação de todos esses valores juntos não deve estourar Int32.

Aplica-se a