Test Setup Failed
Pull Request — master (#377)
by Arkadiusz
02:11
created
src/Regression/DecisionTreeRegressor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
 
100 100
     protected function splitImpurity(array $groups): float
101 101
     {
102
-        $samplesCount = (int) array_sum(array_map(static function (array $group) {
102
+        $samplesCount = (int) array_sum(array_map(static function(array $group) {
103 103
             return count($group[0]);
104 104
         }, $groups));
105 105
 
Please login to merge, or discard this patch.
src/FeatureExtraction/TokenCountVectorizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 
49 49
     public function transform(array &$samples, ?array &$targets = null): void
50 50
     {
51
-        array_walk($samples, function (string &$sample): void {
51
+        array_walk($samples, function(string &$sample): void {
52 52
             $this->transformSample($sample);
53 53
         });
54 54
 
Please login to merge, or discard this patch.