Vector Extensions.Use Dummy Encoding Method
Specifies that dummy encoding (also called treatment encoding) should be used when creating indicator variables.
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 void UseDummyEncoding(
this ICategoricalVector vector,
int referenceLevel = 0
)
Parameters
- vector ICategoricalVector
- The categorical vector to apply the encoding to.
- referenceLevel Int32 (Optional)
- The zero-based index of the reference level. A negative value indicates the level is counted from the end.