@@ -91,7 +91,7 @@ |
||
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | /** |
| 94 | - * @param $column |
|
| 94 | + * @param integer $column |
|
| 95 | 95 | * |
| 96 | 96 | * @return array |
| 97 | 97 | * |
@@ -128,7 +128,7 @@ |
||
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | /** |
| 131 | - * @return mixed |
|
| 131 | + * @return integer |
|
| 132 | 132 | */ |
| 133 | 133 | public function count() |
| 134 | 134 | { |
@@ -138,8 +138,8 @@ |
||
| 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; |
@@ -17,7 +17,7 @@ discard block |
||
| 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 |
||
| 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 | { |
@@ -166,7 +166,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 394 | 393 | * |
| 395 | 394 | * @param int $column |
| 396 | 395 | * @param DecisionTreeLeaf |
| 397 | - * @param array $collected |
|
| 398 | 396 | * |
| 399 | 397 | * @return array |
| 400 | 398 | */ |
@@ -27,6 +27,6 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | public static function singularMatrix() |
| 29 | 29 | { |
| 30 | - return new self('Matrix is singular'); |
|
| 30 | + return new self('Matrix is singular'); |
|
| 31 | 31 | } |
| 32 | 32 | } |