Completed
Pull Request — master (#392)
by
unknown
05:07
created
src/FeatureExtraction/TfIdfTransformer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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]);
Please login to merge, or discard this patch.