Skip to content

Commit

Permalink
fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
SkibidiProduction committed Feb 4, 2025
1 parent 915b6b3 commit d9661ed
Show file tree
Hide file tree
Showing 59 changed files with 1,887 additions and 539 deletions.
20 changes: 6 additions & 14 deletions benchmarks/AnomalyDetectors/GaussianMLEBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,23 @@
use Rubix\ML\Datasets\Generators\Blob;
use Rubix\ML\AnomalyDetectors\GaussianMLE;
use Rubix\ML\Datasets\Generators\Agglomerate;
use Rubix\ML\Datasets\Labeled;

/**
* @Groups({"AnomalyDetectors"})
* @BeforeMethods({"setUp"})
*/
class GaussianMLEBench
{
protected const TRAINING_SIZE = 10000;
protected const int TRAINING_SIZE = 10000;

protected const TESTING_SIZE = 10000;
protected const int TESTING_SIZE = 10000;

/**
* @var \Rubix\ML\Datasets\Labeled;
*/
protected $training;
protected Labeled $training;

/**
* @var \Rubix\ML\Datasets\Labeled;
*/
protected $testing;
protected Labeled $testing;

/**
* @var GaussianMLE
*/
protected $estimator;
protected GaussianMLE $estimator;

public function setUp() : void
{
Expand Down
20 changes: 6 additions & 14 deletions benchmarks/AnomalyDetectors/IsolationForestBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,23 @@
use Rubix\ML\Datasets\Generators\Blob;
use Rubix\ML\Datasets\Generators\Agglomerate;
use Rubix\ML\AnomalyDetectors\IsolationForest;
use Rubix\ML\Datasets\Labeled;

/**
* @Groups({"AnomalyDetectors"})
* @BeforeMethods({"setUp"})
*/
class IsolationForestBench
{
protected const TRAINING_SIZE = 10000;
protected const int TRAINING_SIZE = 10000;

protected const TESTING_SIZE = 10000;
protected const int TESTING_SIZE = 10000;

/**
* @var \Rubix\ML\Datasets\Labeled;
*/
protected $training;
protected Labeled $training;

/**
* @var \Rubix\ML\Datasets\Labeled;
*/
protected $testing;
protected Labeled $testing;

/**
* @var IsolationForest
*/
protected $estimator;
protected IsolationForest $estimator;

public function setUp() : void
{
Expand Down
20 changes: 6 additions & 14 deletions benchmarks/AnomalyDetectors/LocalOutlierFactorBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,23 @@
use Rubix\ML\Datasets\Generators\Blob;
use Rubix\ML\AnomalyDetectors\LocalOutlierFactor;
use Rubix\ML\Datasets\Generators\Agglomerate;
use Rubix\ML\Datasets\Labeled;

/**
* @Groups({"AnomalyDetectors"})
* @BeforeMethods({"setUp"})
*/
class LocalOutlierFactorBench
{
protected const TRAINING_SIZE = 10000;
protected const int TRAINING_SIZE = 10000;

protected const TESTING_SIZE = 10000;
protected const int TESTING_SIZE = 10000;

/**
* @var \Rubix\ML\Datasets\Labeled;
*/
protected $training;
protected Labeled $training;

/**
* @var \Rubix\ML\Datasets\Labeled;
*/
protected $testing;
protected Labeled $testing;

/**
* @var LocalOutlierFactor
*/
protected $estimator;
protected LocalOutlierFactor $estimator;

public function setUp() : void
{
Expand Down
20 changes: 6 additions & 14 deletions benchmarks/AnomalyDetectors/LodaBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,23 @@
use Rubix\ML\AnomalyDetectors\Loda;
use Rubix\ML\Datasets\Generators\Blob;
use Rubix\ML\Datasets\Generators\Agglomerate;
use Rubix\ML\Datasets\Labeled;

/**
* @Groups({"AnomalyDetectors"})
* @BeforeMethods({"setUp"})
*/
class LodaBench
{
protected const TRAINING_SIZE = 10000;
protected const int TRAINING_SIZE = 10000;

protected const TESTING_SIZE = 10000;
protected const int TESTING_SIZE = 10000;

/**
* @var \Rubix\ML\Datasets\Labeled;
*/
protected $training;
protected Labeled $training;

/**
* @var \Rubix\ML\Datasets\Labeled;
*/
protected $testing;
protected Labeled $testing;

/**
* @var Loda
*/
protected $estimator;
protected Loda $estimator;

public function setUp() : void
{
Expand Down
20 changes: 6 additions & 14 deletions benchmarks/AnomalyDetectors/OneClassSVMBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,23 @@
use Rubix\ML\Datasets\Generators\Blob;
use Rubix\ML\AnomalyDetectors\OneClassSVM;
use Rubix\ML\Datasets\Generators\Agglomerate;
use Rubix\ML\Datasets\Labeled;

/**
* @Groups({"AnomalyDetectors"})
* @BeforeMethods({"setUp"})
*/
class OneClassSVMBench
{
protected const TRAINING_SIZE = 10000;
protected const int TRAINING_SIZE = 10000;

protected const TESTING_SIZE = 10000;
protected const int TESTING_SIZE = 10000;

/**
* @var \Rubix\ML\Datasets\Labeled;
*/
protected $training;
protected Labeled $training;

/**
* @var \Rubix\ML\Datasets\Labeled;
*/
protected $testing;
protected Labeled $testing;

/**
* @var OneClassSVM
*/
protected $estimator;
protected OneClassSVM $estimator;

public function setUp() : void
{
Expand Down
20 changes: 6 additions & 14 deletions benchmarks/AnomalyDetectors/RobustZScoreBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,23 @@
use Rubix\ML\Datasets\Generators\Blob;
use Rubix\ML\AnomalyDetectors\RobustZScore;
use Rubix\ML\Datasets\Generators\Agglomerate;
use Rubix\ML\Datasets\Labeled;

/**
* @Groups({"AnomalyDetectors"})
* @BeforeMethods({"setUp"})
*/
class RobustZScoreBench
{
protected const TRAINING_SIZE = 10000;
protected const int TRAINING_SIZE = 10000;

protected const TESTING_SIZE = 10000;
protected const int TESTING_SIZE = 10000;

/**
* @var \Rubix\ML\Datasets\Labeled;
*/
protected $training;
protected Labeled $training;

/**
* @var \Rubix\ML\Datasets\Labeled;
*/
protected $testing;
protected Labeled $testing;

/**
* @var RobustZScore
*/
protected $estimator;
protected RobustZScore $estimator;

public function setUp() : void
{
Expand Down
20 changes: 6 additions & 14 deletions benchmarks/Classifiers/AdaBoostBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,23 @@
use Rubix\ML\Datasets\Generators\Blob;
use Rubix\ML\Classifiers\ClassificationTree;
use Rubix\ML\Datasets\Generators\Agglomerate;
use Rubix\ML\Datasets\Labeled;

/**
* @Groups({"Classifiers"})
* @BeforeMethods({"setUp"})
*/
class AdaBoostBench
{
protected const TRAINING_SIZE = 10000;
protected const int TRAINING_SIZE = 10000;

protected const TESTING_SIZE = 10000;
protected const int TESTING_SIZE = 10000;

/**
* @var \Rubix\ML\Datasets\Labeled;
*/
protected $training;
protected Labeled $training;

/**
* @var \Rubix\ML\Datasets\Labeled;
*/
protected $testing;
protected Labeled $testing;

/**
* @var AdaBoost
*/
protected $estimator;
protected AdaBoost $estimator;

public function setUp() : void
{
Expand Down
20 changes: 6 additions & 14 deletions benchmarks/Classifiers/ClassificationTreeBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,23 @@
use Rubix\ML\Datasets\Generators\Blob;
use Rubix\ML\Classifiers\ClassificationTree;
use Rubix\ML\Datasets\Generators\Agglomerate;
use Rubix\ML\Datasets\Labeled;

/**
* @Groups({"Classifiers"})
* @BeforeMethods({"setUp"})
*/
class ClassificationTreeBench
{
protected const TRAINING_SIZE = 10000;
protected const int TRAINING_SIZE = 10000;

protected const TESTING_SIZE = 10000;
protected const int TESTING_SIZE = 10000;

/**
* @var \Rubix\ML\Datasets\Labeled;
*/
protected $training;
protected Labeled $training;

/**
* @var \Rubix\ML\Datasets\Labeled;
*/
protected $testing;
protected Labeled $testing;

/**
* @var ClassificationTree
*/
protected $estimator;
protected ClassificationTree $estimator;

public function setUp() : void
{
Expand Down
20 changes: 6 additions & 14 deletions benchmarks/Classifiers/ExtraTreeClassifierBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,23 @@
use Rubix\ML\Datasets\Generators\Blob;
use Rubix\ML\Classifiers\ExtraTreeClassifier;
use Rubix\ML\Datasets\Generators\Agglomerate;
use Rubix\ML\Datasets\Labeled;

/**
* @Groups({"Classifiers"})
* @BeforeMethods({"setUp"})
*/
class ExtraTreeClassifierBench
{
protected const TRAINING_SIZE = 10000;
protected const int TRAINING_SIZE = 10000;

protected const TESTING_SIZE = 10000;
protected const int TESTING_SIZE = 10000;

/**
* @var \Rubix\ML\Datasets\Labeled;
*/
protected $training;
protected Labeled $training;

/**
* @var \Rubix\ML\Datasets\Labeled;
*/
protected $testing;
protected Labeled $testing;

/**
* @var ExtraTreeClassifier
*/
protected $estimator;
protected ExtraTreeClassifier $estimator;

public function setUp() : void
{
Expand Down
20 changes: 6 additions & 14 deletions benchmarks/Classifiers/GaussianNBBench.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,23 @@
use Rubix\ML\Classifiers\GaussianNB;
use Rubix\ML\Datasets\Generators\Blob;
use Rubix\ML\Datasets\Generators\Agglomerate;
use Rubix\ML\Datasets\Labeled;

/**
* @Groups({"Classifiers"})
* @BeforeMethods({"setUp"})
*/
class GaussianNBBench
{
protected const TRAINING_SIZE = 10000;
protected const int TRAINING_SIZE = 10000;

protected const TESTING_SIZE = 10000;
protected const int TESTING_SIZE = 10000;

/**
* @var \Rubix\ML\Datasets\Labeled;
*/
protected $training;
protected Labeled $training;

/**
* @var \Rubix\ML\Datasets\Labeled;
*/
protected $testing;
protected Labeled $testing;

/**
* @var GaussianNB
*/
protected $estimator;
protected GaussianNB $estimator;

public function setUp() : void
{
Expand Down
Loading

0 comments on commit d9661ed

Please sign in to comment.