Click or drag to resize
NaiveBayesClassifierClassError Method
Returns the classification probability error for the input pattern and known target classification.

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

Parameters

continuous
Type: SystemDouble
A double array of length nContinuous containing an input pattern of 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.
classification
Type: SystemInt32
An int containing the target classification.

Return Value

Type: Double
A double containing the classification probability error for the input pattern. The classification error for the input pattern is equal to 1-p, where p is the predicted class probability of input classification. The predicted class probability of input classification can be obtained by the method Probabilities. If p = Probabilities and k is equal to classification, then the classification error is 1 - p[k].
See Also