PHP Class Phpml\Metric\Accuracy

Show file Open project: php-ai/php-ml

Public Methods

Method Description
score ( array $actualLabels, array $predictedLabels, boolean $normalize = true ) : float | integer

Method Details

score() public static method

public static score ( array $actualLabels, array $predictedLabels, boolean $normalize = true ) : float | integer
$actualLabels array
$predictedLabels array
$normalize boolean
return float | integer