Test Setup Failed
Pull Request — master (#350)
by Pol
02:35
created
src/Dataset/MnistDataset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
                 $imageBytes = fread($stream, $fields['rows'] * $fields['cols']);
62 62
 
63 63
                 // Convert to float between 0 and 1
64
-                $images[] = array_map(function ($b) {
64
+                $images[] = array_map(function($b) {
65 65
                     return $b / 255;
66 66
                 }, array_values(unpack('C*', (string) $imageBytes)));
67 67
             }
Please login to merge, or discard this patch.
src/Clustering/KMeans/Space.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
     }
60 60
 
61 61
     /**
62
-     * @param object $point
62
+     * @param Point $point
63 63
      * @param mixed  $data
64 64
      */
65 65
     public function attach($point, $data = null): void
Please login to merge, or discard this patch.
src/Tokenization/NGramTokenizer.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@
 block discarded – undo
23 23
             $length = strlen($word);
24 24
 
25 25
             for ($i = 1; $i <= $length; $i++) {
26
-              foreach ($ngramsFactory->ngrams(str_split($word), $i) as $ngram) {
26
+                foreach ($ngramsFactory->ngrams(str_split($word), $i) as $ngram) {
27 27
                 $ngram_dataset[] = implode('', $ngram);
28
-              }
28
+                }
29 29
             }
30 30
         }
31 31
 
Please login to merge, or discard this patch.