PHP Machine Learning library
Go to file
Mustafa Karabulut 1d73503958 Ensemble Classifiers : Bagging and RandomForest (#36)
* Fuzzy C-Means implementation

* Update FuzzyCMeans

* Rename FuzzyCMeans to FuzzyCMeans.php

* Update NaiveBayes.php

* Small fix applied to improve training performance

array_unique is replaced with array_count_values+array_keys which is way
faster

* Revert "Small fix applied to improve training performance"

This reverts commit c20253f16ac3e8c37d33ecaee28a87cc767e3b7f.

* Revert "Revert "Small fix applied to improve training performance""

This reverts commit ea10e136c4c11b71609ccdcaf9999067e4be473e.

* Revert "Small fix applied to improve training performance"

This reverts commit c20253f16ac3e8c37d33ecaee28a87cc767e3b7f.

* First DecisionTree implementation

* Revert "First DecisionTree implementation"

This reverts commit 4057a08679c26010c39040a48a3e6dad994a1a99.

* DecisionTree

* FCM Test

* FCM Test

* DecisionTree Test

* Ensemble classifiers: Bagging and RandomForests

* test

* Fixes for conflicted files

* Bagging and RandomForest ensemble algorithms

* Changed unit test

* Changed unit test

* Changed unit test

* Bagging and RandomForest ensemble algorithms

* Baggging and RandomForest ensemble algorithms

* Bagging and RandomForest ensemble algorithms

RandomForest algorithm is improved with changes to original DecisionTree

* Bagging and RandomForest ensemble algorithms

* Slight fix about use of global Exception class

* Fixed the error about wrong use of global Exception class

* RandomForest code formatting
2017-02-07 12:37:56 +01:00
bin/libsvm fix permission for osx 2016-07-01 22:36:59 +02:00
data add glass identification dataset 2016-04-09 15:46:54 +02:00
docs Persistence class to save and restore models (#37) 2017-02-02 09:03:09 +01:00
src/Phpml Ensemble Classifiers : Bagging and RandomForest (#36) 2017-02-07 12:37:56 +01:00
tests/Phpml Ensemble Classifiers : Bagging and RandomForest (#36) 2017-02-07 12:37:56 +01:00
tools Change php-cs-fixer runner 2016-12-12 18:10:58 +01:00
var start to implement SVM with libsvm 2016-05-05 23:29:11 +02:00
.gitignore Change php-cs-fixer runner 2016-12-12 18:10:58 +01:00
.php_cs Add rules for new cs-fixer 2017-01-31 20:33:08 +01:00
.travis.yml Add php 7.1 to travis 2016-12-12 19:12:26 +01:00
CHANGELOG.md Prepare for next release 2017-02-03 17:54:41 +01:00
CONTRIBUTING.md Note about updating docs in CONTRIBUTING.md (#39) 2017-02-01 13:52:36 +01:00
LICENSE create some text in readme 2016-02-08 23:07:16 +01:00
README.md Add link to model manager in readme 2017-02-04 11:19:43 +01:00
composer.json Update phpunit to 6.0 2017-02-03 12:58:25 +01:00
composer.lock Update phpunit to 6.0 2017-02-03 12:58:25 +01:00
humbug.json.dist add config for humbug - mutation test framework 2016-05-03 12:35:57 +02:00
mkdocs.yml Persistence class to save and restore models (#37) 2017-02-02 09:03:09 +01:00
phpunit.xml add filter for code coverage 2016-05-03 12:03:36 +02:00

README.md

PHP-ML - Machine Learning library for PHP

Minimum PHP Version Latest Stable Version Build Status Documentation Status Total Downloads License Scrutinizer Code Quality

PHP-ML - Machine Learning library for PHP

Fresh approach to Machine Learning in PHP. Algorithms, Cross Validation, Neural Network, Preprocessing, Feature Extraction and much more in one library.

PHP-ML requires PHP >= 7.0.

Simple example of classification:

use Phpml\Classification\KNearestNeighbors;

$samples = [[1, 3], [1, 4], [2, 4], [3, 1], [4, 1], [4, 2]];
$labels = ['a', 'a', 'a', 'b', 'b', 'b'];

$classifier = new KNearestNeighbors();
$classifier->train($samples, $labels);

$classifier->predict([3, 2]); 
// return 'b'

Documentation

To find out how to use PHP-ML follow Documentation.

Installation

Currently this library is in the process of developing, but You can install it with Composer:

composer require php-ai/php-ml

Examples

Example scripts are available in a separate repository php-ai/php-ml-examples.

Features

Contribute

You can find more about contributing in CONTRIBUTING.md.

License

PHP-ML is released under the MIT Licence. See the bundled LICENSE file for details.

Author

Arkadiusz Kondas (@ArkadiuszKondas)