setScore
The method setScore in Point object triggers an exception if $score is lower than 0 or greater than 1. The exception is triggered even if the score is equal to 1 when the initialization is QUASI_RANDOM and in AUC optimization mode
public function setScore(float $score)
{
if ($score < 0) {
throw new Exception('Score must be equal or greater to 0');
} elseif ($score > 1) {
throw new Exception("Score mus be less or equal to 1");
}
$this->score = $score;
}
Edited by a.croix