Fix for php7.1 accuracy test score

This commit is contained in:
Arkadiusz Kondas 2016-12-12 19:28:26 +01:00
parent 902d2ddcd9
commit b6fe290c65

View File

@ -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);
}
}