The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



CalcConfusionMatrix


Unit: SDL_statis
Class: TCFEvaluator
Declaration: function CalcConfusionMatrix (CFThresh: double): integer;

The method CalcConfusionMatrix calculates the confusion matrix for a given threshold CFThresh. Please note that this method has to be called before individual performance measures can be calculated. The values of the confusion matrix can be retrieved by the function GetConfMatValues.

The function returns the following error codes:

 0 ... everything is OK
-1 ... the estimated data and the actual data vectors do not have the same length
-2 ... the actual (true) data is not dichotomous

Hint: In order to find an optimum threshold for the classifier, you can use OptimizeThresholds.

 



Last Update: 2023-Dec-08