Passed
Pull Request — master (#86)
by Marcin
03:17
created
src/Phpml/Helper/Optimizer/GD.php 1 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\Helper\Optimizer;
6 6
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
             $this->updateWeightsWithUpdates($updates, $totalPenalty);
44 44
 
45
-            $this->costValues[] = array_sum($errors)/$this->sampleCount;
45
+            $this->costValues[] = array_sum($errors) / $this->sampleCount;
46 46
 
47 47
             if ($this->earlyStop($theta)) {
48 48
                 break;
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     protected function gradient(array $theta)
66 66
     {
67 67
         $costs = [];
68
-        $gradient= [];
68
+        $gradient = [];
69 69
         $totalPenalty = 0;
70 70
 
71 71
         foreach ($this->samples as $index => $sample) {
Please login to merge, or discard this patch.
src/Phpml/Helper/Optimizer/ConjugateGradient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Phpml\Helper\Optimizer;
6 6
 
Please login to merge, or discard this patch.
src/Phpml/Helper/Optimizer/Optimizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Phpml\Helper\Optimizer;
6 6
 
Please login to merge, or discard this patch.