Completed
Push — master ( 6296e4...a87859 )
by Arkadiusz
18:50
created
src/Phpml/Clustering/KMeans/Cluster.php 2 patches
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.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -138,8 +138,8 @@
 block discarded – undo
138 138
     }
139 139
     
140 140
     /**
141
-    * @param array $newCoordinates
142
-    */
141
+     * @param array $newCoordinates
142
+     */
143 143
     public function setCoordinates(array $newCoordinates)
144 144
     {
145 145
         $this->coordinates = $newCoordinates;
Please login to merge, or discard this patch.
src/Phpml/Clustering/KMeans/Space.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     protected $dimension;
18 18
 
19 19
     /**
20
-     * @param $dimension
20
+     * @param integer $dimension
21 21
      */
22 22
     public function __construct($dimension)
23 23
     {
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
     /**
226 226
      * @param int $clustersNumber
227 227
      *
228
-     * @return array
228
+     * @return Cluster[]
229 229
      */
230 230
     protected function initializeKMPPClusters(int $clustersNumber)
231 231
     {
Please login to merge, or discard this patch.
src/Phpml/Classification/Linear/Adaline.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      * If normalizeInputs is set to true, then every input given to the algorithm will be standardized
53 53
      * by use of standard deviation and mean calculation
54 54
      *
55
-     * @param int $learningRate
55
+     * @param double $learningRate
56 56
      * @param int $maxIterations
57 57
      */
58 58
     public function __construct(float $learningRate = 0.001, int $maxIterations = 1000,
Please login to merge, or discard this patch.
src/Phpml/Classification/Linear/Perceptron.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
      *
76 76
      * Learning rate should be a float value between 0.0(exclusive) and 1.0(inclusive) <br>
77 77
      * Maximum number of iterations can be an integer value greater than 0
78
-     * @param int $learningRate
78
+     * @param double $learningRate
79 79
      * @param int $maxIterations
80 80
      */
81 81
     public function __construct(float $learningRate = 0.001, int $maxIterations = 1000,
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
         return $this->trainByLabel($samples, $targets, $labels);
98 98
     }
99 99
 
100
-   /**
100
+    /**
101 101
      * @param array $samples
102 102
      * @param array $targets
103 103
      * @param array $labels
Please login to merge, or discard this patch.
src/Phpml/Classification/Linear/DecisionStump.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@
 block discarded – undo
226 226
     /**
227 227
      *
228 228
      * @param type $leftValue
229
-     * @param type $operator
229
+     * @param string $operator
230 230
      * @param type $rightValue
231 231
      *
232 232
      * @return boolean
Please login to merge, or discard this patch.
src/Phpml/Math/Matrix.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     }
107 107
 
108 108
     /**
109
-     * @param $column
109
+     * @param integer $column
110 110
      *
111 111
      * @return array
112 112
      *
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
      * Element-wise addition or substraction depending on the given sign parameter
279 279
      *
280 280
      * @param Matrix $other
281
-     * @param type $sign
281
+     * @param integer $sign
282 282
      */
283 283
     protected function _add(Matrix $other, $sign = 1)
284 284
     {
Please login to merge, or discard this patch.
src/Phpml/Math/Statistic/Covariance.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,6 @@
 block discarded – undo
60 60
      * @param int $i
61 61
      * @param int $k
62 62
      * @param type $sample
63
-     * @param int $n
64 63
      * @param float $meanX
65 64
      * @param float $meanY
66 65
      */
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/SupportVectorMachine/SupportVectorMachine.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@
 block discarded – undo
10 10
 {
11 11
     use Trainable;
12 12
      
13
-     /**
14
-     * @var int
15
-     */
13
+        /**
14
+         * @var int
15
+         */
16 16
     private $type;
17 17
 
18 18
     /**
Please login to merge, or discard this patch.