Categorical Encoding.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#
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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.