Click or drag to resize
NaiveBayesClassifierGetClassCounts Method
Returns the number of patterns for each target classification.

Namespace: Imsl.DataMining
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
public int[] GetClassCounts(
	int[] classificationData
)

Parameters

classificationData
Type: SystemInt32
An int array containing the target classifications for the training patterns. These must be encoded from zero to nClasses-1. Any value outside this range is considered a missing value. In this case, the data in that pattern are not used to train the Naive Bayes classifier. However, any pattern with missing values is still classified after the classifier is trained.

Return Value

Type: Int32
An int array containing the class counts.
See Also