CategoricalEncoding.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#
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.

Return Value

CategoricalEncoding

See Also