CategoricalEncoding.Dummy Method

Also called one hot encoding. Every level except the reference level is encoded using a binary variable.

Definition

Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static CategoricalEncoding Dummy(
	IIndex categoryIndex,
	int referenceLevel = 0
)

Parameters

categoryIndex  IIndex
An index that specifies the levels.
referenceLevel  Int32  (Optional)
The zero-based index of the reference level. A negative value indicates the level is counted from the end.

Return Value

CategoricalEncoding

See Also