@@ -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 | { |
@@ -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 | |
12 | 9 | class Adaline extends Perceptron |
@@ -5,7 +5,6 @@ |
||
5 | 5 | namespace Phpml\Classification\Linear; |
6 | 6 | |
7 | 7 | use Phpml\Helper\Predictable; |
8 | -use Phpml\Helper\Trainable; |
|
9 | 8 | use Phpml\Classification\Classifier; |
10 | 9 | use Phpml\Preprocessing\Normalizer; |
11 | 10 |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | */ |
22 | 22 | protected static $errorFunction = 'outputClass'; |
23 | 23 | |
24 | - /** |
|
24 | + /** |
|
25 | 25 | * @var array |
26 | 26 | */ |
27 | 27 | protected $samples = []; |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | $this->threshold = $threshold; |
112 | 112 | } |
113 | 113 | |
114 | - /** |
|
114 | + /** |
|
115 | 115 | * @param array $samples |
116 | 116 | * @param array $targets |
117 | 117 | */ |