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: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
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.