Skip to content

Commit

Permalink
Update PHP version and dependencies (#352)
Browse files Browse the repository at this point in the history
* Update stack

* Update stack

* fix ci.yml

* fix ci.yml

* fix ci.yml

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan
  • Loading branch information
SkibidiProduction authored Feb 10, 2025
1 parent ca59648 commit 5927e9b
Show file tree
Hide file tree
Showing 427 changed files with 8,965 additions and 13,000 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
operating-system: [windows-latest, ubuntu-latest, macos-latest]
php-versions: ['8.0', '8.1', '8.2']
php-versions: ['8.4']

steps:
- name: Checkout
Expand All @@ -24,9 +24,10 @@ jobs:
ini-values: memory_limit=-1

- name: Install OpenBLAS
if: matrix.operating-system == 'ubuntu-latest'
run: |
apt-get update -q
apt-get install -qy libopenblas-dev
sudo apt-get update -q
sudo apt-get install -qy libopenblas-dev liblapacke-dev
- name: Install NumPower
run: |
Expand All @@ -35,8 +36,8 @@ jobs:
phpize
./configure
make
make install
echo "extension=ndarray.so" >> $(php -i | grep "Loaded Configuration File" | sed -e "s|.*=>\s*||")
sudo make install
sudo echo "extension=ndarray.so" >> $(php -i | grep "Loaded Configuration File" | sed -e "s|.*=>\s*||")
- name: Validate composer.json
run: composer validate
Expand Down
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
Loading

0 comments on commit 5927e9b

Please sign in to comment.