Skip to content

Commit

Permalink
Bump version and fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdalpino committed Dec 26, 2024
1 parent 90e8122 commit 1f3d0cb
Show file tree
Hide file tree
Showing 208 changed files with 319 additions and 315 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
- 2.6.0
- You can now exclude certain categories from one-hot encoding.

- 2.5.2
- Fix bug in One-class SVM inferencing

Expand Down
2 changes: 1 addition & 1 deletion src/AnomalyDetectors/GaussianMLE.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function type() : EstimatorType
*
* @internal
*
* @return list<\Rubix\ML\DataType>
* @return list<DataType>
*/
public function compatibility() : array
{
Expand Down
4 changes: 2 additions & 2 deletions src/AnomalyDetectors/IsolationForest.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class IsolationForest implements Estimator, Learner, Scoring, Persistable
/**
* The isolation trees that make up the forest.
*
* @var \Rubix\ML\Graph\Trees\ITree[]
* @var ITree[]
*/
protected array $trees = [
//
Expand Down Expand Up @@ -162,7 +162,7 @@ public function type() : EstimatorType
*
* @internal
*
* @return list<\Rubix\ML\DataType>
* @return list<DataType>
*/
public function compatibility() : array
{
Expand Down
2 changes: 1 addition & 1 deletion src/AnomalyDetectors/Loda.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function type() : EstimatorType
*
* @internal
*
* @return list<\Rubix\ML\DataType>
* @return list<DataType>
*/
public function compatibility() : array
{
Expand Down
2 changes: 1 addition & 1 deletion src/AnomalyDetectors/OneClassSVM.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function type() : EstimatorType
*
* @internal
*
* @return list<\Rubix\ML\DataType>
* @return list<DataType>
*/
public function compatibility() : array
{
Expand Down
2 changes: 1 addition & 1 deletion src/AnomalyDetectors/RobustZScore.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function type() : EstimatorType
*
* @internal
*
* @return list<\Rubix\ML\DataType>
* @return list<DataType>
*/
public function compatibility() : array
{
Expand Down
4 changes: 2 additions & 2 deletions src/Backends/Amp.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function enqueue(Task $task, ?callable $after = null, $context = null) :
* @param AmpTask $task
* @param callable(mixed,mixed):void $after
* @param mixed $context
* @return \Generator<\Amp\Promise>
* @return Generator<\Amp\Promise>
*/
public function coroutine(AmpTask $task, ?callable $after = null, $context = null) : Generator
{
Expand Down Expand Up @@ -138,7 +138,7 @@ public function process() : array
*
* @internal
*
* @return \Generator<\Amp\Promise>
* @return Generator<\Amp\Promise>
*/
public function gather() : Generator
{
Expand Down
4 changes: 2 additions & 2 deletions src/BootstrapAggregator.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class BootstrapAggregator implements Estimator, Learner, Parallel, Persistable
/**
* The ensemble of estimators.
*
* @var list<\Rubix\ML\Learner>
* @var list<Learner>
*/
protected array $ensemble = [
//
Expand Down Expand Up @@ -136,7 +136,7 @@ public function type() : EstimatorType
*
* @internal
*
* @return list<\Rubix\ML\DataType>
* @return list<DataType>
*/
public function compatibility() : array
{
Expand Down
4 changes: 2 additions & 2 deletions src/Classifiers/AdaBoost.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class AdaBoost implements Estimator, Learner, Probabilistic, Verbose, Persistabl
/**
* The ensemble of *weak* classifiers.
*
* @var \Rubix\ML\Learner[]|null
* @var Learner[]|null
*/
protected ?array $ensemble = null;

Expand Down Expand Up @@ -255,7 +255,7 @@ public function trained() : bool
/**
* Return an iterable progress table with the steps from the last training session.
*
* @return \Generator<mixed[]>
* @return Generator<mixed[]>
*/
public function steps() : Generator
{
Expand Down
2 changes: 1 addition & 1 deletion src/Classifiers/ClassificationTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function type() : EstimatorType
*
* @internal
*
* @return list<\Rubix\ML\DataType>
* @return list<DataType>
*/
public function compatibility() : array
{
Expand Down
2 changes: 1 addition & 1 deletion src/Classifiers/ExtraTreeClassifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function type() : EstimatorType
*
* @internal
*
* @return list<\Rubix\ML\DataType>
* @return list<DataType>
*/
public function compatibility() : array
{
Expand Down
2 changes: 1 addition & 1 deletion src/Classifiers/GaussianNB.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public function type() : EstimatorType
*
* @internal
*
* @return list<\Rubix\ML\DataType>
* @return list<DataType>
*/
public function compatibility() : array
{
Expand Down
4 changes: 2 additions & 2 deletions src/Classifiers/LogisticRegression.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public function type() : EstimatorType
*
* @internal
*
* @return list<\Rubix\ML\DataType>
* @return list<DataType>
*/
public function compatibility() : array
{
Expand Down Expand Up @@ -238,7 +238,7 @@ public function trained() : bool
/**
* Return an iterable progress table with the steps from the last training session.
*
* @return \Generator<mixed[]>
* @return Generator<mixed[]>
*/
public function steps() : Generator
{
Expand Down
2 changes: 1 addition & 1 deletion src/Classifiers/LogitBoost.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ public function trained() : bool
/**
* Return an iterable progress table with the steps from the last training session.
*
* @return \Generator<mixed[]>
* @return Generator<mixed[]>
*/
public function steps() : Generator
{
Expand Down
8 changes: 4 additions & 4 deletions src/Classifiers/MultilayerPerceptron.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class MultilayerPerceptron implements Estimator, Learner, Online, Probabilistic,
/**
* An array composing the user-specified hidden layers of the network in order.
*
* @var \Rubix\ML\NeuralNet\Layers\Hidden[]
* @var Hidden[]
*/
protected array $hiddenLayers;

Expand Down Expand Up @@ -165,7 +165,7 @@ class MultilayerPerceptron implements Estimator, Learner, Online, Probabilistic,
protected ?array $losses = null;

/**
* @param \Rubix\ML\NeuralNet\Layers\Hidden[] $hiddenLayers
* @param Hidden[] $hiddenLayers
* @param int $batchSize
* @param Optimizer|null $optimizer
* @param float $l2Penalty
Expand Down Expand Up @@ -259,7 +259,7 @@ public function type() : EstimatorType
*
* @internal
*
* @return list<\Rubix\ML\DataType>
* @return list<DataType>
*/
public function compatibility() : array
{
Expand Down Expand Up @@ -304,7 +304,7 @@ public function trained() : bool
/**
* Return an iterable progress table with the steps from the last training session.
*
* @return \Generator<mixed[]>
* @return Generator<mixed[]>
*/
public function steps() : Generator
{
Expand Down
2 changes: 1 addition & 1 deletion src/Classifiers/NaiveBayes.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function type() : EstimatorType
*
* @internal
*
* @return list<\Rubix\ML\DataType>
* @return list<DataType>
*/
public function compatibility() : array
{
Expand Down
2 changes: 1 addition & 1 deletion src/Classifiers/OneVsRest.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class OneVsRest implements Estimator, Learner, Probabilistic, Parallel, Persista
/**
* A map of each class to its binary classifier.
*
* @var array<\Rubix\ML\Learner>
* @var array<Learner>
*/
protected array $classifiers = [
//
Expand Down
2 changes: 1 addition & 1 deletion src/Classifiers/SVC.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function type() : EstimatorType
*
* @internal
*
* @return list<\Rubix\ML\DataType>
* @return list<DataType>
*/
public function compatibility() : array
{
Expand Down
4 changes: 2 additions & 2 deletions src/Classifiers/SoftmaxClassifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public function type() : EstimatorType
*
* @internal
*
* @return list<\Rubix\ML\DataType>
* @return list<DataType>
*/
public function compatibility() : array
{
Expand Down Expand Up @@ -234,7 +234,7 @@ public function trained() : bool
/**
* Return an iterable progress table with the steps from the last training session.
*
* @return \Generator<mixed[]>
* @return Generator<mixed[]>
*/
public function steps() : Generator
{
Expand Down
4 changes: 2 additions & 2 deletions src/Clusterers/FuzzyCMeans.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public function type() : EstimatorType
/**
* Return the data types that the estimator is compatible with.
*
* @return list<\Rubix\ML\DataType>
* @return list<DataType>
*/
public function compatibility() : array
{
Expand Down Expand Up @@ -225,7 +225,7 @@ public function centroids() : array
/**
* Return an iterable progress table with the steps from the last training session.
*
* @return \Generator<mixed[]>
* @return Generator<mixed[]>
*/
public function steps() : Generator
{
Expand Down
4 changes: 2 additions & 2 deletions src/Clusterers/GaussianMixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public function type() : EstimatorType
/**
* Return the data types that the estimator is compatible with.
*
* @return list<\Rubix\ML\DataType>
* @return list<DataType>
*/
public function compatibility() : array
{
Expand Down Expand Up @@ -256,7 +256,7 @@ public function variances() : array
/**
* Return an iterable progress table with the steps from the last training session.
*
* @return \Generator<mixed[]>
* @return Generator<mixed[]>
*/
public function steps() : Generator
{
Expand Down
4 changes: 2 additions & 2 deletions src/Clusterers/KMeans.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public function type() : EstimatorType
/**
* Return the data types that the estimator is compatible with.
*
* @return list<\Rubix\ML\DataType>
* @return list<DataType>
*/
public function compatibility() : array
{
Expand Down Expand Up @@ -256,7 +256,7 @@ public function sizes() : array
/**
* Return an iterable progress table with the steps from the last training session.
*
* @return \Generator<mixed[]>
* @return Generator<mixed[]>
*/
public function steps() : Generator
{
Expand Down
4 changes: 2 additions & 2 deletions src/Clusterers/MeanShift.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public function type() : EstimatorType
/**
* Return the data types that the estimator is compatible with.
*
* @return list<\Rubix\ML\DataType>
* @return list<DataType>
*/
public function compatibility() : array
{
Expand Down Expand Up @@ -278,7 +278,7 @@ public function centroids() : array
/**
* Return an iterable progress table with the steps from the last training session.
*
* @return \Generator<mixed[]>
* @return Generator<mixed[]>
*/
public function steps() : Generator
{
Expand Down
10 changes: 5 additions & 5 deletions src/CommitteeMachine.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class CommitteeMachine implements Estimator, Learner, Parallel, Persistable
/**
* The committee of experts. i.e. the ensemble of estimators.
*
* @var list<\Rubix\ML\Learner>
* @var list<Learner>
*/
protected array $experts;

Expand All @@ -70,7 +70,7 @@ class CommitteeMachine implements Estimator, Learner, Parallel, Persistable
/**
* The data types that the committee is compatible with.
*
* @var list<\Rubix\ML\DataType>
* @var list<DataType>
*/
protected array $compatibility;

Expand All @@ -84,7 +84,7 @@ class CommitteeMachine implements Estimator, Learner, Parallel, Persistable
];

/**
* @param \Rubix\ML\Learner[] $experts
* @param Learner[] $experts
* @param (int|float)[]|null $influences
* @throws InvalidArgumentException
*/
Expand Down Expand Up @@ -173,7 +173,7 @@ public function type() : EstimatorType
*
* @internal
*
* @return list<\Rubix\ML\DataType>
* @return list<DataType>
*/
public function compatibility() : array
{
Expand Down Expand Up @@ -208,7 +208,7 @@ public function trained() : bool
/**
* Return the learner instances of the committee.
*
* @return list<\Rubix\ML\Learner>
* @return list<Learner>
*/
public function experts() : array
{
Expand Down
2 changes: 1 addition & 1 deletion src/CrossValidation/Metrics/Accuracy.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function range() : Tuple
*
* @internal
*
* @return list<\Rubix\ML\EstimatorType>
* @return list<EstimatorType>
*/
public function compatibility() : array
{
Expand Down
2 changes: 1 addition & 1 deletion src/CrossValidation/Metrics/Completeness.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function range() : Tuple
*
* @internal
*
* @return list<\Rubix\ML\EstimatorType>
* @return list<EstimatorType>
*/
public function compatibility() : array
{
Expand Down
2 changes: 1 addition & 1 deletion src/CrossValidation/Metrics/FBeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function range() : Tuple
*
* @internal
*
* @return list<\Rubix\ML\EstimatorType>
* @return list<EstimatorType>
*/
public function compatibility() : array
{
Expand Down
Loading

0 comments on commit 1f3d0cb

Please sign in to comment.