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

@@ -9,7 +9,7 @@ abstract class Perceptron extends Model
public function __construct(
private array $synaptic_weights,
) {
$this->synaptic_weights = $synaptic_weights; // Add bias weight
$this->synaptic_weights = $synaptic_weights;
}
public function test(array $inputs): int
@@ -24,7 +24,7 @@ abstract class Perceptron extends Model
return $this->activationFunction($weighted_sum);
}
abstract protected function activationFunction(float $weighted_sum): int;
abstract public function activationFunction(float $weighted_sum): int;
public function getSynapticWeights(): array
{