Model Term.Categorical Method
Returns a categorical term with the specified key, category index,
and encoding scheme.
Definition
Namespace: Numerics.NET.DataAnalysis.Models
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
A categorical model term.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public static ModelTerm Categorical(
string key,
IIndex index,
CategoricalEncoding? encoding = null
)
Parameters
- key String
- The key of the categorical column.
- index IIndex
- The category index of the column.
- encoding CategoricalEncoding (Optional)
- The encoding that is to be used when creating indicator variables.
Return Value
ModelTermA categorical model term.