Wiki
This commit is contained in:
@@ -33,7 +33,7 @@ abstract class NetworkTraining
|
||||
protected function checkPassedMaxIterations(?float $finalError)
|
||||
{
|
||||
if ($this->epoch >= $this->maxEpochs) {
|
||||
$message = 'Le nombre maximal d\'epoch a été atteint';
|
||||
$message = 'Le nombre maximal d\'époques a été atteint';
|
||||
if ($finalError) {
|
||||
$message .= " avec une erreur finale de $finalError";
|
||||
}
|
||||
@@ -42,6 +42,12 @@ abstract class NetworkTraining
|
||||
}
|
||||
}
|
||||
|
||||
protected function broadcastTrainingEnded(string $reason): void
|
||||
{
|
||||
$this->iterationEventBuffer->flush();
|
||||
event(new PerceptronTrainingEnded($reason, $this->sessionId, $this->trainingId));
|
||||
}
|
||||
|
||||
protected function addIterationToBuffer(float $error, array $synapticWeights)
|
||||
{
|
||||
$this->iterationEventBuffer->addIteration($this->epoch, $this->datasetReader->getLastReadLineIndex(), $error, $synapticWeights);
|
||||
|
||||
Reference in New Issue
Block a user