Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
Phpml\Metric\ClassificationReport Class Reference

Public Member Functions

 __construct (array $actualLabels, array $predictedLabels, int $average=self::MACRO_AVERAGE)
 
 getAverage ()
 
 getF1score ()
 
 getPrecision ()
 
 getRecall ()
 
 getSupport ()
 

Public Attributes

const MACRO_AVERAGE = 2
 
const MICRO_AVERAGE = 1
 
const WEIGHTED_AVERAGE = 3
 

The documentation for this class was generated from the following file: