@@ -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; |
@@ -6,10 +6,8 @@ |
||
6 | 6 | |
7 | 7 | use Phpml\Helper\Predictable; |
8 | 8 | use Phpml\Helper\Trainable; |
9 | -use Phpml\Math\Statistic\Mean; |
|
10 | 9 | use Phpml\Classification\Classifier; |
11 | 10 | use Phpml\Classification\DecisionTree; |
12 | -use Phpml\Classification\NaiveBayes; |
|
13 | 11 | |
14 | 12 | class Bagging implements Classifier |
15 | 13 | { |
@@ -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 | } |
@@ -4,9 +4,6 @@ |
||
4 | 4 | |
5 | 5 | namespace Phpml\Classification\Linear; |
6 | 6 | |
7 | -use Phpml\Helper\Predictable; |
|
8 | -use Phpml\Helper\Trainable; |
|
9 | -use Phpml\Classification\Classifier; |
|
10 | 7 | use Phpml\Classification\Linear\Perceptron; |
11 | 8 | use Phpml\Preprocessing\Normalizer; |
12 | 9 |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | */ |
21 | 21 | protected static $errorFunction = 'outputClass'; |
22 | 22 | |
23 | - /** |
|
23 | + /** |
|
24 | 24 | * @var array |
25 | 25 | */ |
26 | 26 | protected $samples = []; |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | $this->maxIterations = $maxIterations; |
79 | 79 | } |
80 | 80 | |
81 | - /** |
|
81 | + /** |
|
82 | 82 | * @param array $samples |
83 | 83 | * @param array $targets |
84 | 84 | */ |