ModelInputGroup.SetEncoding Method

Sets the encoding of the specified variable.

Definition

Namespace: Extreme.DataAnalysis.Models
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public void SetEncoding(
	string key,
	Func<IIndex, int, CategoricalEncoding> encoding,
	int referenceLevel = -1
)

Parameters

key  String
The key of the variable.
encoding  Func<IIndex, Int32, CategoricalEncoding>
A function that generates the encoding.
referenceLevel  Int32  (Optional)
Optional. The zero-based index of the reference level of the encoding.

Exceptions

InvalidOperationExceptionkey does not correspond to a categorical variable in the group.

See Also