@@ -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 | { |
@@ -136,9 +136,9 @@ |
||
| 136 | 136 | $N_K_N = $N->multiply($K_N); |
| 137 | 137 | |
| 138 | 138 | return $K->subtract($N_K) |
| 139 | - ->subtract($K_N) |
|
| 140 | - ->add($N_K_N) |
|
| 141 | - ->toArray(); |
|
| 139 | + ->subtract($K_N) |
|
| 140 | + ->add($N_K_N) |
|
| 141 | + ->toArray(); |
|
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | /** |
@@ -65,24 +65,24 @@ |
||
| 65 | 65 | private $V = []; |
| 66 | 66 | |
| 67 | 67 | /** |
| 68 | - * Array for internal storage of nonsymmetric Hessenberg form. |
|
| 69 | - * |
|
| 70 | - * @var array |
|
| 71 | - */ |
|
| 68 | + * Array for internal storage of nonsymmetric Hessenberg form. |
|
| 69 | + * |
|
| 70 | + * @var array |
|
| 71 | + */ |
|
| 72 | 72 | private $H = []; |
| 73 | 73 | |
| 74 | 74 | /** |
| 75 | - * Working storage for nonsymmetric algorithm. |
|
| 76 | - * |
|
| 77 | - * @var array |
|
| 78 | - */ |
|
| 75 | + * Working storage for nonsymmetric algorithm. |
|
| 76 | + * |
|
| 77 | + * @var array |
|
| 78 | + */ |
|
| 79 | 79 | private $ort; |
| 80 | 80 | |
| 81 | 81 | /** |
| 82 | - * Used for complex scalar division. |
|
| 83 | - * |
|
| 84 | - * @var float |
|
| 85 | - */ |
|
| 82 | + * Used for complex scalar division. |
|
| 83 | + * |
|
| 84 | + * @var float |
|
| 85 | + */ |
|
| 86 | 86 | private $cdivr; |
| 87 | 87 | private $cdivi; |
| 88 | 88 | |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | - * @param mixed $targetClass |
|
| 33 | + * @param integer $targetClass |
|
| 34 | 34 | */ |
| 35 | 35 | public function backpropagate(array $layers, $targetClass) |
| 36 | 36 | { |
@@ -88,6 +88,7 @@ |
||
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | 90 | * @throws MatrixException |
| 91 | + * @param integer $column |
|
| 91 | 92 | */ |
| 92 | 93 | public function getColumnValues($column) : array |
| 93 | 94 | { |
@@ -256,7 +256,6 @@ |
||
| 256 | 256 | * |
| 257 | 257 | * The probability is simply taken as the distance of the sample |
| 258 | 258 | * to the decision plane. |
| 259 | - |
|
| 260 | 259 | * @param mixed $label |
| 261 | 260 | */ |
| 262 | 261 | protected function predictProbability(array $sample, $label) : float |