ModelInputGroup.SetEncoding Method

Sets the encoding of the specified variable.

Definition

Namespace: Numerics.NET.DataAnalysis.Models
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
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

InvalidOperationException

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

See Also