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....



F1Score


Unit: SDL_statis
Class: TCFEvaluator
Declaration: function F1Score: double;

The function F1Score calculates the F1 score (harmonic mean of precision and sensitivity) of the classifier for a particular threshold which has to be set by calling the method CalcConfusionMatrix. The valid range for the F1 score is from 0.0 to 1.0. A negative value indicates a condition where the F1 score cannot be calculated:
-1 ... the method CalcConfusionMatrix has not been called before
-2 ... the actual (true) values are not dichotomous



Last Update: 2023-Dec-08