Rafactored Perceptrons and network training

This commit is contained in:
2026-03-22 14:58:34 +01:00
parent 47991fe736
commit 42e07de287
9 changed files with 18 additions and 29 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Models\Perceptrons;
class GradientDescentPerceptron extends Perceptron {
public function __construct(
array $synaptic_weights,
) {
parent::__construct($synaptic_weights);
}
public function activationFunction(float $weighted_sum): float
{
return $weighted_sum;
}
}