Fix linting
This commit is contained in:
@@ -2,13 +2,15 @@
|
||||
|
||||
namespace App\Services\SynapticWeightsProvider;
|
||||
|
||||
class ZeroSynapticWeights implements ISynapticWeightsProvider {
|
||||
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