Added configuration panel datasets, back-end refactor and others
This commit is contained in:
14
app/Services/ZeroSynapticWeights.php
Normal file
14
app/Services/ZeroSynapticWeights.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services;
|
||||
|
||||
class ZeroSynapticWeights implements ISynapticWeightsProvider {
|
||||
public function generate(int $input_size): array
|
||||
{
|
||||
$weights = [];
|
||||
for ($i = 0; $i < $input_size + 1; $i++) { // +1 for bias weight
|
||||
$weights[] = 0; // Zero weights
|
||||
}
|
||||
return $weights;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user