Skip to content

Commit

Permalink
Fix for php7.1 accuracy test score
Browse files Browse the repository at this point in the history
  • Loading branch information
akondas committed Dec 12, 2016
1 parent 902d2dd commit b6fe290
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Phpml/Metric/AccuracyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ public function testAccuracyOnDemoDataset()

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

0 comments on commit b6fe290

Please sign in to comment.