Completed
Push — develop ( bbbf5c...2f5b09 )
by Arkadiusz
03:17
created
src/Phpml/Math/Statistic/Correlation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Phpml/Regression/SVR.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Phpml/FeatureExtraction/TokenCountVectorizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.