Added configuration panel datasets, back-end refactor and others
This commit is contained in:
@@ -10,7 +10,7 @@ class SimplePerceptron extends Perceptron {
|
||||
parent::__construct($synaptic_weights);
|
||||
}
|
||||
|
||||
protected function activationFunction(float $weighted_sum): int
|
||||
public function activationFunction(float $weighted_sum): int
|
||||
{
|
||||
return $weighted_sum >= 0 ? 1 : 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user