Gradient descent training + Added all dataset + graphs improvements
This commit is contained in:
18
app/Models/GradientDescentPerceptron.php
Normal file
18
app/Models/GradientDescentPerceptron.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
class GradientDescentPerceptron extends Perceptron {
|
||||
|
||||
public function __construct(
|
||||
array $synaptic_weights,
|
||||
) {
|
||||
parent::__construct($synaptic_weights);
|
||||
}
|
||||
|
||||
public function activationFunction(float $weighted_sum): float
|
||||
{
|
||||
return $weighted_sum;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user