| NaiveBayesClassifierCreateNominalAttribute Method |
Create a nominal attribute and the number of categories
Namespace: Imsl.DataMiningAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntaxpublic void CreateNominalAttribute(
int nCategories
)
Public Sub CreateNominalAttribute (
nCategories As Integer
)
public:
void CreateNominalAttribute(
int nCategories
)
member CreateNominalAttribute :
nCategories : int -> unit
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