Passed
Pull Request — master (#208)
by
unknown
02:25
created
src/Phpml/NeuralNetwork/Network/MultilayerPerceptron.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -142,6 +142,9 @@
 block discarded – undo
142 142
         $this->addLayer(new Layer($nodes, Input::class));
143 143
     }
144 144
 
145
+    /**
146
+     * @param ActivationFunction $defaultActivationFunction
147
+     */
145 148
     private function addNeuronLayers(array $layers, ?ActivationFunction $defaultActivationFunction = null): void
146 149
     {
147 150
         foreach ($layers as $layer) {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Phpml\NeuralNetwork\Network;
6 6
 
@@ -146,9 +146,9 @@  discard block
 block discarded – undo
146 146
     {
147 147
         foreach ($layers as $layer) {
148 148
             if (is_array($layer) && end($layer) instanceof ActivationFunction) {
149
-                $this->addLayer(new Layer($layer[0], Neuron::class,  $layer[1]));
149
+                $this->addLayer(new Layer($layer[0], Neuron::class, $layer[1]));
150 150
             } else {
151
-                $this->addLayer(new Layer($layer, Neuron::class,  $defaultActivationFunction));
151
+                $this->addLayer(new Layer($layer, Neuron::class, $defaultActivationFunction));
152 152
             }
153 153
         }
154 154
     }
Please login to merge, or discard this patch.