Method | Description | |
---|---|---|
__construct ( array $actualLabels, array $predictedLabels ) | ||
getAverage ( ) : array | ||
getF1score ( ) : array | ||
getPrecision ( ) : array | ||
getRecall ( ) : array | ||
getSupport ( ) : array |
Method | Description | |
---|---|---|
computeAverage ( ) | ||
computeF1Score ( float $precision, float $recall ) : float | ||
computeMetrics ( array $truePositive, array $falsePositive, array $falseNegative ) | ||
computePrecision ( integer $truePositive, integer $falsePositive ) : float | string | ||
computeRecall ( integer $truePositive, integer $falseNegative ) : float | string | ||
getLabelIndexedArray ( array $actualLabels, array $predictedLabels ) : array |
public __construct ( array $actualLabels, array $predictedLabels ) | ||
$actualLabels | array | |
$predictedLabels | array |