Dela via


KeyDataViewType Constructors

Definition

Overloads

KeyDataViewType(Type, Int32)

Initializes a new instance of the KeyDataViewType class. This differs from the hypothetically more general KeyDataViewType(Type, UInt64) constructor by taking an Int32 for count, to more naturally facilitate the most common case that the key value is being used as an enumeration over an array or list of some form.

KeyDataViewType(Type, UInt64)

Initializes a new instance of the KeyDataViewType class.

KeyDataViewType(Type, Int32)

Initializes a new instance of the KeyDataViewType class. This differs from the hypothetically more general KeyDataViewType(Type, UInt64) constructor by taking an Int32 for count, to more naturally facilitate the most common case that the key value is being used as an enumeration over an array or list of some form.

public KeyDataViewType (Type type, int count);
new Microsoft.ML.Data.KeyDataViewType : Type * int -> Microsoft.ML.Data.KeyDataViewType
Public Sub New (type As Type, count As Integer)

Parameters

type
Type

The underlying representation type. Should be one of Byte, UInt16, UInt32 (the most common choice), or UInt64.

count
Int32

The cardinality of the underlying set. This must not exceed the associated maximum value of the representation type. For example, if type is UInt32, then this must not exceed MaxValue.

Applies to

KeyDataViewType(Type, UInt64)

Initializes a new instance of the KeyDataViewType class.

public KeyDataViewType (Type type, ulong count);
new Microsoft.ML.Data.KeyDataViewType : Type * uint64 -> Microsoft.ML.Data.KeyDataViewType
Public Sub New (type As Type, count As ULong)

Parameters

type
Type

The underlying representation type. Should be one of Byte, UInt16, UInt32 (the most common choice), or UInt64.

count
UInt64

The cardinality of the underlying set. This must not exceed the associated maximum value of the representation type. For example, if type is UInt32, then this must not exceed MaxValue.

Applies to