Gradient descent training + Added all dataset + graphs improvements
This commit is contained in:
@@ -28,9 +28,14 @@ abstract class NetworkTraining
|
||||
abstract public function start() : void;
|
||||
abstract protected function stopCondition(): bool;
|
||||
|
||||
protected function checkPassedMaxIterations() {
|
||||
protected function checkPassedMaxIterations(?float $finalError) {
|
||||
if ($this->iteration >= $this->maxIterations) {
|
||||
event(new PerceptronTrainingEnded('Le nombre maximal d\'itérations a été atteint', $this->sessionId, $this->trainingId));
|
||||
$message = 'Le nombre maximal d\'itérations a été atteint';
|
||||
if ($finalError) {
|
||||
$message .= " avec une erreur finale de $finalError";
|
||||
}
|
||||
|
||||
event(new PerceptronTrainingEnded($message, $this->sessionId, $this->trainingId));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user