Completed
Pull Request — master (#36)
by
unknown
03:44 queued 01:01
created
src/Phpml/Classification/DecisionTree.php 1 patch
Doc Comments   +1 added lines, -4 removed lines patch added patch discarded remove patch
@@ -306,7 +306,4 @@
 block discarded – undo
306 306
         }
307 307
         return $this->labels[0];
308 308
 =======
309
-        return $node->classValue;
310
->>>>>>> refs/remotes/php-ai/master
311
-    }
312
-}
309
+        return $node->classValue
313 310
\ No newline at end of file
Please login to merge, or discard this patch.
src/Phpml/Classification/DecisionTree/DecisionTreeLeaf.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -105,6 +105,4 @@
 block discarded – undo
105 105
             $str .= '</tr>';
106 106
         }
107 107
         $str .= '</table>';
108
-        return $str;
109
-    }
110
-}
108
+        return $str
111 109
\ No newline at end of file
Please login to merge, or discard this patch.
src/Phpml/Classification/Ensemble/Bagging.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -114,6 +114,7 @@
 block discarded – undo
114 114
     }
115 115
 
116 116
     /**
117
+     * @param integer $index
117 118
      * @return array
118 119
      */
119 120
     protected function getRandomSubset($index)
Please login to merge, or discard this patch.
src/Phpml/Classification/NaiveBayes.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -187,6 +187,4 @@
 block discarded – undo
187 187
         }
188 188
         arsort($predictions, SORT_NUMERIC);
189 189
         reset($predictions);
190
-        return key($predictions);
191
-    }
192
-}
190
+        return key($predictions
193 191
\ No newline at end of file
Please login to merge, or discard this patch.
src/Phpml/Clustering/FuzzyCMeans.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -241,6 +241,4 @@
 block discarded – undo
241 241
         foreach ($this->clusters as $cluster) {
242 242
             $grouped[] = $cluster->getPoints();
243 243
         }
244
-        return $grouped;
245
-    }
246
-}
244
+        return $grouped
247 245
\ No newline at end of file
Please login to merge, or discard this patch.