Added configuration panel datasets, back-end refactor and others
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user