diff --git a/.php_cs b/.php_cs index 417cafa..5a2dd57 100644 --- a/.php_cs +++ b/.php_cs @@ -7,6 +7,7 @@ return PhpCsFixer\Config::create() 'array_syntax' => ['syntax' => 'short'], 'blank_line_after_opening_tag' => true, 'single_blank_line_before_namespace' => true, + 'no_unused_imports' => true ]) ->setFinder( PhpCsFixer\Finder::create() diff --git a/src/Phpml/Classification/Ensemble/Bagging.php b/src/Phpml/Classification/Ensemble/Bagging.php index d579b24..1bb2027 100644 --- a/src/Phpml/Classification/Ensemble/Bagging.php +++ b/src/Phpml/Classification/Ensemble/Bagging.php @@ -6,10 +6,8 @@ namespace Phpml\Classification\Ensemble; use Phpml\Helper\Predictable; use Phpml\Helper\Trainable; -use Phpml\Math\Statistic\Mean; use Phpml\Classification\Classifier; use Phpml\Classification\DecisionTree; -use Phpml\Classification\NaiveBayes; class Bagging implements Classifier { diff --git a/src/Phpml/Classification/Ensemble/RandomForest.php b/src/Phpml/Classification/Ensemble/RandomForest.php index 025badf..273eb21 100644 --- a/src/Phpml/Classification/Ensemble/RandomForest.php +++ b/src/Phpml/Classification/Ensemble/RandomForest.php @@ -4,9 +4,7 @@ declare(strict_types=1); namespace Phpml\Classification\Ensemble; -use Phpml\Classification\Ensemble\Bagging; use Phpml\Classification\DecisionTree; -use Phpml\Classification\NaiveBayes; use Phpml\Classification\Classifier; class RandomForest extends Bagging diff --git a/src/Phpml/Classification/Linear/Adaline.php b/src/Phpml/Classification/Linear/Adaline.php index 13674f1..194451a 100644 --- a/src/Phpml/Classification/Linear/Adaline.php +++ b/src/Phpml/Classification/Linear/Adaline.php @@ -4,10 +4,7 @@ declare(strict_types=1); namespace Phpml\Classification\Linear; -use Phpml\Helper\Predictable; -use Phpml\Helper\Trainable; use Phpml\Classification\Classifier; -use Phpml\Classification\Linear\Perceptron; class Adaline extends Perceptron { diff --git a/src/Phpml/Classification/Linear/Perceptron.php b/src/Phpml/Classification/Linear/Perceptron.php index bc31da1..e2c684d 100644 --- a/src/Phpml/Classification/Linear/Perceptron.php +++ b/src/Phpml/Classification/Linear/Perceptron.php @@ -5,7 +5,6 @@ declare(strict_types=1); namespace Phpml\Classification\Linear; use Phpml\Helper\Predictable; -use Phpml\Helper\Trainable; use Phpml\Classification\Classifier; use Phpml\Preprocessing\Normalizer; diff --git a/src/Phpml/Classification/WeightedClassifier.php b/src/Phpml/Classification/WeightedClassifier.php index 36a294e..c0ec045 100644 --- a/src/Phpml/Classification/WeightedClassifier.php +++ b/src/Phpml/Classification/WeightedClassifier.php @@ -1,9 +1,9 @@ -