Added configuration panel datasets, back-end refactor and others
Some checks failed
linter / quality (push) Failing after 7s
tests / ci (8.4) (push) Failing after 6s
tests / ci (8.5) (push) Failing after 5s

This commit is contained in:
2026-03-12 16:38:50 +01:00
parent 650cf56045
commit 83b7aa3f3a
39 changed files with 3176 additions and 425 deletions

View File

@@ -17,11 +17,9 @@ class PerceptronTrainingIteration implements ShouldBroadcast
* Create a new event instance.
*/
public function __construct(
public int $iteration,
public int $exampleIndex,
public float $error,
public array $synaptic_weights,
public array $iterations, // ["iteration" => int, "exampleIndex" => int, "error" => float, "synaptic_weights" => array]
public string $sessionId,
public string $trainingId,
)
{
//
@@ -43,10 +41,8 @@ class PerceptronTrainingIteration implements ShouldBroadcast
public function broadcastWith(): array
{
return [
'iteration' => $this->iteration,
'exampleIndex' => $this->exampleIndex,
'error' => $this->error,
'synaptic_weights' => $this->synaptic_weights,
'iterations' => $this->iterations,
'trainingId' => $this->trainingId,
];
}
}