@@ -184,7 +184,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
455 | 454 | * |
456 | 455 | * @param int $column |
457 | 456 | * @param DecisionTreeLeaf |
458 | - * @param array $collected |
|
459 | 457 | * |
460 | 458 | * @return array |
461 | 459 | */ |
@@ -158,8 +158,8 @@ |
||
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 | { |