Completed
Pull Request — master (#36)
by
unknown
03:44 queued 01:01
created
src/Phpml/Classification/DecisionTree.php 1 patch
Unused Use Statements   +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
Unused Use Statements   +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
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -6,10 +6,8 @@
 block discarded – undo
6 6
 
7 7
 use Phpml\Helper\Predictable;
8 8
 use Phpml\Helper\Trainable;
9
-use Phpml\Math\Statistic\Mean;
10 9
 use Phpml\Classification\Classifier;
11 10
 use Phpml\Classification\DecisionTree;
12
-use Phpml\Classification\NaiveBayes;
13 11
 
14 12
 class Bagging implements Classifier
15 13
 {
Please login to merge, or discard this patch.
src/Phpml/Classification/Ensemble/RandomForest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,6 @@
 block discarded – undo
4 4
 namespace Phpml\Classification\Ensemble;
5 5
 
6 6
 use Phpml\Classification\Ensemble\Bagging;
7
-use Phpml\Classification\DecisionTree;
8
-use Phpml\Classification\NaiveBayes;
9 7
 
10 8
 class RandomForest extends Bagging
11 9
 {
Please login to merge, or discard this patch.
src/Phpml/Classification/NaiveBayes.php 1 patch
Unused Use Statements   +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
Unused Use Statements   +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.