Click or drag to resize
NaiveBayesClassifierPredictClass Method
Predicts the classification for the input pattern using the trained Naive Bayes classifier.

Namespace: Imsl.DataMining
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
public int PredictClass(
	double[] continuous,
	int[] nominal
)

Parameters

continuous
Type: SystemDouble
A double array containing an input pattern of nContinuous continuous attributes. If nContinuous = 0, a null is allowed.
nominal
Type: SystemInt32
An int array of length nNominal containing an input pattern of nominal attributes. If nNominal = 0, a null is allowed.

Return Value

Type: Int32
An int containing the predicted classification for the input pattern using the trained Naive Bayes Classifier. The predicted classification returned is the class with the largest estimated classification probability. The classification probabilities can be predicted using the Probabilities method.
See Also