epoch >= $this->maxEpochs) { $message = 'Le nombre maximal d\'epoch a été atteint'; if ($finalError) { $message .= " avec une erreur finale de $finalError"; } event(new PerceptronTrainingEnded($message, $this->sessionId, $this->trainingId)); } } protected function addIterationToBuffer(float $error, array $synapticWeights) { $this->iterationEventBuffer->addIteration($this->epoch, $this->datasetReader->getLastReadLineIndex(), $error, $synapticWeights); } }