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.4
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
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.