@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | |
58 | 58 | $count = count($samples); |
59 | 59 | $this->idf = array_map( |
60 | - function (float $value) use ($count): float { |
|
60 | + function(float $value) use ($count): float { |
|
61 | 61 | return $value > 0.0 |
62 | 62 | ? log($count / $value, 10) |
63 | 63 | : 0; |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | |
69 | 69 | public function transform(array &$samples, ?array &$targets = null): void |
70 | 70 | { |
71 | - array_walk($samples, function (array &$sample): void { |
|
71 | + array_walk($samples, function(array &$sample): void { |
|
72 | 72 | foreach ($sample as $index => &$feature) { |
73 | 73 | if ($this->termCounts[$index] < $this->minTf || $this->idf[$index] < $this->minIdf) { |
74 | 74 | unset($sample[$index]); |