@@ -30,7 +30,7 @@ |
||
| 30 | 30 | $a2 = 0; |
| 31 | 31 | $b2 = 0; |
| 32 | 32 | |
| 33 | - for ($i = 0;$i < $count;++$i) { |
|
| 33 | + for ($i = 0; $i < $count; ++$i) { |
|
| 34 | 34 | $a = $x[$i] - $meanX; |
| 35 | 35 | $b = $y[$i] - $meanY; |
| 36 | 36 | $axb = $axb + ($a * $b); |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | public function __construct( |
| 25 | 25 | int $kernel = Kernel::RBF, int $degree = 3, float $epsilon = 0.1, float $cost = 1.0, |
| 26 | - float $gamma = null, float $coef0 = 0.0, float $tolerance = 0.001, |
|
| 26 | + float $gamma = null, float $coef0 = 0.0, float $tolerance = 0.001, |
|
| 27 | 27 | int $cacheSize = 100, bool $shrinking = true |
| 28 | 28 | ) { |
| 29 | 29 | parent::__construct(Type::EPSILON_SVR, $kernel, $cost, 0.5, $degree, $gamma, $coef0, $epsilon, $tolerance, $cacheSize, $shrinking, false); |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | /** |
| 86 | 86 | * @param string $sample |
| 87 | 87 | */ |
| 88 | - private function transformSample(string &$sample) |
|
| 88 | + private function transformSample(string & $sample) |
|
| 89 | 89 | { |
| 90 | 90 | $counts = []; |
| 91 | 91 | $tokens = $this->tokenizer->tokenize($sample); |