| NaiveBayesClassifierGetClassCounts Method |
Returns the number of patterns for each target classification.
Namespace: Imsl.DataMiningAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntaxpublic int[] GetClassCounts(
int[] classificationData
)
Public Function GetClassCounts (
classificationData As Integer()
) As Integer()
public:
array<int>^ GetClassCounts(
array<int>^ classificationData
)
member GetClassCounts :
classificationData : int[] -> int[]
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