Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 400] [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403]

(no description)

File Size: 232 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: ClassificationReport  - X-Ref

__construct(array $actualLabels, array $predictedLabels, int $average = self::MACRO_AVERAGE)   X-Ref


getPrecision()   X-Ref
No description

getRecall()   X-Ref
No description

getF1score()   X-Ref
No description

getSupport()   X-Ref
No description

getAverage()   X-Ref
No description

aggregateClassificationResults(array $actualLabels, array $predictedLabels)   X-Ref
No description

computeMetrics()   X-Ref
No description

computeAverage(int $average)   X-Ref
No description

computeMicroAverage()   X-Ref
No description

computeMacroAverage()   X-Ref
No description

computeWeightedAverage()   X-Ref
No description

computePrecision(int $truePositive, int $falsePositive)   X-Ref

return: float|string

computeRecall(int $truePositive, int $falseNegative)   X-Ref

return: float|string

computeF1Score(float $precision, float $recall)   X-Ref
No description

getLabelIndexedArray(array $actualLabels, array $predictedLabels)   X-Ref
No description