Update changelog and cs fixes

This commit is contained in:
Arkadiusz Kondas 2017-02-23 20:59:30 +01:00
parent 4daa0a222a
commit e8c6005aec
4 changed files with 15 additions and 5 deletions

View File

@ -3,8 +3,13 @@ CHANGELOG
This changelog references the relevant changes done in PHP-ML library.
* 0.3.1 (in plan/progress)
* feature [Regression] - SSE, SSTo, SSR - sum of the squared
* 0.4.0 (2017-02-23)
* feature [Classification] - Ensemble Classifiers : Bagging and RandomForest by Mustafa Karabulut
* feature [Classification] - RandomForest::getFeatureImportances() method by Mustafa Karabulut
* feature [Classification] - Linear classifiers: Perceptron, Adaline, DecisionStump by Mustafa Karabulut
* feature [Classification] - AdaBoost algorithm by Mustafa Karabulut
* bug [Math] - Check if matrix is singular doing inverse by Povilas Susinskas
* optimization - Euclidean optimization by Mustafa Karabulut
* 0.3.0 (2017-02-04)
* feature [Persistency] - ModelManager - save and restore trained models by David Monllaó

View File

@ -56,6 +56,11 @@ Example scripts are available in a separate repository [php-ai/php-ml-examples](
* Ensemble Algorithms
* Bagging (Bootstrap Aggregating)
* Random Forest
* AdaBoost
* Linear
* Adaline
* Decision Stump
* Perceptron
* Regression
* [Least Squares](http://php-ml.readthedocs.io/en/latest/machine-learning/regression/least-squares/)
* [SVR](http://php-ml.readthedocs.io/en/latest/machine-learning/regression/svr/)

View File

@ -27,6 +27,6 @@ class MatrixException extends \Exception
*/
public static function singularMatrix()
{
return new self('Matrix is singular');
return new self('Matrix is singular');
}
}

View File

@ -146,13 +146,13 @@ class MatrixTest extends TestCase
*/
public function testThrowExceptionWhenInverseIfMatrixIsSingular()
{
$matrix = new Matrix([
$matrix = new Matrix([
[0, 0, 0],
[0, 0, 0],
[0, 0, 0],
]);
$matrix->inverse();
$matrix->inverse();
}
public function testInverseMatrix()