mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-24 13:57:33 +00:00
Fix for php7.1 accuracy test score
This commit is contained in:
parent
902d2ddcd9
commit
b6fe290c65
@ -50,6 +50,8 @@ class AccuracyTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
$accuracy = Accuracy::score($dataset->getTestLabels(), $predicted);
|
||||
|
||||
$this->assertEquals(0.959, $accuracy, '', 0.01);
|
||||
$expected = PHP_VERSION_ID >= 70100 ? 1 : 0.959;
|
||||
|
||||
$this->assertEquals($expected, $accuracy, '', 0.01);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user