Passed
Pull Request — master (#156)
by Tomáš
03:42
created
src/Phpml/Clustering/KMeans/Cluster.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
     }
129 129
 
130 130
     /**
131
-     * @return mixed
131
+     * @return integer
132 132
      */
133 133
     public function count()
134 134
     {
Please login to merge, or discard this patch.
src/Phpml/DimensionReduction/KernelPCA.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -136,9 +136,9 @@
 block discarded – undo
136 136
         $N_K_N = $N->multiply($K_N);
137 137
 
138 138
         return $K->subtract($N_K)
139
-                 ->subtract($K_N)
140
-                 ->add($N_K_N)
141
-                 ->toArray();
139
+                    ->subtract($K_N)
140
+                    ->add($N_K_N)
141
+                    ->toArray();
142 142
     }
143 143
 
144 144
     /**
Please login to merge, or discard this patch.
src/Phpml/Clustering/KMeans/Space.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -16,6 +16,9 @@
 block discarded – undo
16 16
      */
17 17
     protected $dimension;
18 18
 
19
+    /**
20
+     * @param integer $dimension
21
+     */
19 22
     public function __construct($dimension)
20 23
     {
21 24
         if ($dimension < 1) {
Please login to merge, or discard this patch.
src/Phpml/NeuralNetwork/Training/Backpropagation.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     }
31 31
 
32 32
     /**
33
-     * @param mixed $targetClass
33
+     * @param integer $targetClass
34 34
      */
35 35
     public function backpropagate(array $layers, $targetClass): void
36 36
     {
Please login to merge, or discard this patch.