Click or drag to resize
NaiveBayesClassifierCreateNominalAttribute Method
Create a nominal attribute and the number of categories

Namespace: Imsl.DataMining
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
public void CreateNominalAttribute(
	int nCategories
)

Parameters

nCategories
Type: SystemInt32
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