diff --git a/Ai/NeuralNetwork/Neuron.php b/Ai/NeuralNetwork/Neuron.php index 5ad2ab44e..cdbe1c490 100644 --- a/Ai/NeuralNetwork/Neuron.php +++ b/Ai/NeuralNetwork/Neuron.php @@ -63,7 +63,7 @@ class Neuron { $this->bias = $bias; } - public function addInput($input, float $weight) + public function addInput($input, float $weight) : void { $this->inputs[] = $input; $this->weights[] = $weight; @@ -86,7 +86,6 @@ class Neuron { } return $output + $this->bias; - // return $this->activationFunction($output + $this->bias); } -} \ No newline at end of file +}