ModelTermCollection.AddVariable 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#
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.

Return Value

ModelTermCollection

See Also