15 lines
338 B
PHP
15 lines
338 B
PHP
<?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;
|
|
}
|
|
}
|