VectorDataViewType Class

Definition

The standard vector type. The representation type of this is VBuffer<T>, where the type parameter is in ItemType.

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

Constructors

VectorDataViewType(PrimitiveDataViewType, ImmutableArray<Int32>)

Constructs a potentially multi-dimensional vector type.

VectorDataViewType(PrimitiveDataViewType, Int32)

Constructs a new single-dimensional vector type.

VectorDataViewType(PrimitiveDataViewType, Int32[])

Constructs a potentially multi-dimensional vector type.

Properties

Dimensions

The dimensions. This will always have at least one item. All values will be non-negative. As with Size, a zero value indicates that the vector type is considered to have unknown length along that dimension.

IsKnownSize

Whether this is a vector type with known size. Equivalent to Size > 0.

ItemType

The type of the items stored as values in vectors of this type.

RawType

The raw Type for this DataViewType. Note that this is the raw representation type and not the complete information content of the DataViewType.

(Inherited from DataViewType)
Size

The size of the vector. A value of zero means it is a vector whose size is unknown. A vector whose size is known should correspond to values that always have the same Length, whereas one whose size is unknown may have values whose Length varies from record to record. Note that this is always the product of the elements in Dimensions.

Methods

Equals(DataViewType)
Equals(Object)
GetHashCode()
ToString()

Applies to