Categorical Encoding.Get Contrast Matrix Method
Returns a matrix whose columns contain the contrasts
for the encoding.
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
A matrix whose columns contain the contrasts for the encoding.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public Matrix<double> GetContrastMatrix(
bool fullRank = false
)
Parameters
- fullRank Boolean (Optional)
- Optional. Specifies whether the full rank encodings should be returned. The default is false.
Return Value
Matrix<Double>A matrix whose columns contain the contrasts for the encoding.