Model Term Collection.Add Variable Method
Adds a categorical term to the collection.
Definition
Namespace: Numerics.NET.DataAnalysis.Models
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public ModelTermCollection AddVariable(
string key,
IIndex index,
CategoricalEncoding? encoding = null
)
Parameters
- key String
- index IIndex
- The category index of the variable.
- encoding CategoricalEncoding (Optional)
- The encoding to use.