Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update PHP version and dependencies #352

Merged
merged 9 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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
Loading