Returns the number of patterns for each target classification.

Namespace: Imsl.DataMining
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public int[] GetClassCounts(
	int[] classificationData
)
Visual Basic (Declaration)
Public Function GetClassCounts ( _
	classificationData As Integer() _
) As Integer()
Visual C++
public:
array<int>^ GetClassCounts(
	array<int>^ classificationData
)

Parameters

classificationData
Type: array< System..::.Int32 >[]()[]
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

An int array containing the class counts.

See Also