Completed
Push — master ( cf222b...4daa0a )
by Arkadiusz
03:24
created
src/Phpml/Classification/DecisionTree.php 1 patch
Doc Comments   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 
185 185
     /**
186 186
      * @param array $records
187
-     * @return DecisionTreeLeaf[]
187
+     * @return null|DecisionTreeLeaf
188 188
      */
189 189
     protected function getBestSplit($records)
190 190
     {
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
     /**
378 378
      * Used to set predefined features to consider while deciding which column to use for a split
379 379
      *
380
-     * @param array $selectedFeatures
380
+     * @param integer[] $selectedFeatures
381 381
      */
382 382
     protected function setSelectedFeatures(array $selectedFeatures)
383 383
     {
@@ -415,7 +415,6 @@  discard block
 block discarded – undo
415 415
      * each column in the given dataset. The importance values are
416 416
      * normalized and their total makes 1.<br/>
417 417
      *
418
-     * @param array $labels
419 418
      * @return array
420 419
      */
421 420
     public function getFeatureImportances()
@@ -455,7 +454,6 @@  discard block
 block discarded – undo
455 454
      *
456 455
      * @param int $column
457 456
      * @param DecisionTreeLeaf
458
-     * @param array $collected
459 457
      *
460 458
      * @return array
461 459
      */
Please login to merge, or discard this patch.
src/Phpml/Classification/Linear/DecisionStump.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -158,8 +158,8 @@
 block discarded – undo
158 158
      * @param string $operator
159 159
      * @param array $values
160 160
      * @param array $targets
161
-     * @param mixed $leftLabel
162
-     * @param mixed $rightLabel
161
+     * @param string $leftLabel
162
+     * @param string $rightLabel
163 163
      */
164 164
     protected function calculateErrorRate(float $threshold, string $operator, array $values, array $targets, $leftLabel, $rightLabel)
165 165
     {
Please login to merge, or discard this patch.