@@ -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 | { |
@@ -52,7 +52,7 @@ |
||
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, |
@@ -226,7 +226,7 @@ |
||
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 |
@@ -9,11 +9,11 @@ |
||
9 | 9 | |
10 | 10 | class SupportVectorMachine |
11 | 11 | { |
12 | - use Trainable; |
|
12 | + use Trainable; |
|
13 | 13 | |
14 | - /** |
|
15 | - * @var int |
|
16 | - */ |
|
14 | + /** |
|
15 | + * @var int |
|
16 | + */ |
|
17 | 17 | private $type; |
18 | 18 | |
19 | 19 | /** |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | { |
16 | 16 | use Predictable, OneVsRest; |
17 | 17 | |
18 | - /** |
|
18 | + /** |
|
19 | 19 | * @var array |
20 | 20 | */ |
21 | 21 | protected $samples = []; |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | $this->maxIterations = $maxIterations; |
84 | 84 | } |
85 | 85 | |
86 | - /** |
|
86 | + /** |
|
87 | 87 | * @param array $samples |
88 | 88 | * @param array $targets |
89 | 89 | */ |