Test Setup Failed
Push — master ( 717f23...417174 )
by Arkadiusz
02:44 queued 26s
created
src/Tree/Node/DecisionNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         $this->value = $value;
51 51
         $this->groups = $groups;
52 52
         $this->impurity = $impurity;
53
-        $this->samplesCount = (int) array_sum(array_map(function (array $group) {
53
+        $this->samplesCount = (int) array_sum(array_map(function(array $group) {
54 54
             return count($group[0]);
55 55
         }, $groups));
56 56
     }
Please login to merge, or discard this patch.
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.
src/Preprocessing/ColumnFilter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,10 +18,10 @@
 block discarded – undo
18 18
 
19 19
     public function __construct(array $datasetColumns, array $filterColumns)
20 20
     {
21
-        $this->datasetColumns = array_map(static function (string $column): string {
21
+        $this->datasetColumns = array_map(static function(string $column): string {
22 22
             return $column;
23 23
         }, $datasetColumns);
24
-        $this->filterColumns = array_map(static function (string $column): string {
24
+        $this->filterColumns = array_map(static function(string $column): string {
25 25
             return $column;
26 26
         }, $filterColumns);
27 27
     }
Please login to merge, or discard this patch.