@@ -50,7 +50,7 @@ |
||
| 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 | } |
@@ -99,7 +99,7 @@ |
||
| 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 | |