Categorical Encoding.Deviation Method
Returns an encoding where every level except the reference level is encoded using
one of three values: 1 if the value equals the level,
-1 if the value equals the reference level, and 0 otherwise.
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 Deviation(
IIndex categoryIndex,
int referenceLevel = -1
)
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.