Added configuration panel datasets, back-end refactor and others
This commit is contained in:
@@ -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,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user