mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-10 14:08:40 +00:00
autofix
This commit is contained in:
parent
cb2877f45c
commit
f47d83a664
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user