Create a nominal attribute and the number of categories

Namespace: Imsl.DataMining
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public void CreateNominalAttribute(
	int nCategories
)
Visual Basic (Declaration)
Public Sub CreateNominalAttribute ( _
	nCategories As Integer _
)
Visual C++
public:
void CreateNominalAttribute(
	int nCategories
)

Parameters

nCategories
Type: System..::.Int32
An int containing the number of categories in the nominal attribute. The category values are expected to be encoded with integers ranging from 0 to nCategories -1. No default is used for nCategories. If nNominal is not zero, and CreateNominalAttribute is not invoked for each nNominal attribute, an InvalidOperationException will be thrown when the Train method is invoked.

See Also