This commit is contained in:
Dennis Eichhorn 2022-02-12 21:18:13 +01:00
parent cb2877f45c
commit f47d83a664

View File

@ -63,7 +63,7 @@ class Neuron {
$this->bias = $bias; $this->bias = $bias;
} }
public function addInput($input, float $weight) public function addInput($input, float $weight) : void
{ {
$this->inputs[] = $input; $this->inputs[] = $input;
$this->weights[] = $weight; $this->weights[] = $weight;
@ -86,7 +86,6 @@ class Neuron {
} }
return $output + $this->bias; return $output + $this->bias;
// return $this->activationFunction($output + $this->bias); // return $this->activationFunction($output + $this->bias);
} }
} }