Test Failed
Push — master ( e8c600...c028a7 )
by Arkadiusz
02:50
created
src/Phpml/Classification/DecisionTree.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 
167 167
     /**
168 168
      * @param array $records
169
-     * @return DecisionTreeLeaf[]
169
+     * @return null|DecisionTreeLeaf
170 170
      */
171 171
     protected function getBestSplit($records)
172 172
     {
@@ -354,7 +354,6 @@  discard block
 block discarded – undo
354 354
      * each column in the given dataset. The importance values are
355 355
      * normalized and their total makes 1.<br/>
356 356
      *
357
-     * @param array $labels
358 357
      * @return array
359 358
      */
360 359
     public function getFeatureImportances()
@@ -394,7 +393,6 @@  discard block
 block discarded – undo
394 393
      *
395 394
      * @param int $column
396 395
      * @param DecisionTreeLeaf
397
-     * @param array $collected
398 396
      *
399 397
      * @return array
400 398
      */
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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      */
22 22
     protected static $errorFunction = 'outputClass';
23 23
 
24
-   /**
24
+    /**
25 25
      * @var array
26 26
      */
27 27
     protected $samples = [];
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         $this->threshold = $threshold;
112 112
     }
113 113
 
114
-   /**
114
+    /**
115 115
      * @param array $samples
116 116
      * @param array $targets
117 117
      */
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.