PHP Machine Learning library
Go to file
Attila Bakos 7d5c6b15a4 Updates to the documentation (linguistic corrections) (#414)
* Fix typo in Features list

* Update distance.md documentation

* Fix grammatical mistakes in documentation

* Fix grammatical mistakes in documentation

* Fix grammatical mistakes in documentation

* Fix grammatical mistakes in documentation

* Fix grammatical mistakes in documentation

* Fix grammatical mistakes in documentation

* Fix grammatical mistakes in documentation

* Fix grammatical mistakes in documentation

* Fix grammatical mistakes in documentation
2019-11-02 11:41:34 +01:00
bin Update phpunit to 7.5.1 and remove osx build from travis (#335) 2018-12-18 07:53:32 +01:00
data add glass identification dataset 2016-04-09 15:46:54 +02:00
docs Updates to the documentation (linguistic corrections) (#414) 2019-11-02 11:41:34 +01:00
src Fix grammatical error, and make wording consistent (#410) 2019-10-28 07:49:47 +01:00
tests Fix division by zero in ANOVA for small size dataset (#391) 2019-06-22 22:54:47 +02:00
var start to implement SVM with libsvm 2016-05-05 23:29:11 +02:00
.editorconfig Issue #355: Add a .editorconfig file. (#356) 2019-02-10 08:08:35 +01:00
.gitattributes Add .gitattributes (#287) 2018-06-25 23:19:13 +02:00
.gitignore Update to phpunit 8 and bump min php to 7.2 (#367) 2019-04-10 20:42:59 +02:00
.travis.yml Update to phpunit 8 and bump min php to 7.2 (#367) 2019-04-10 20:42:59 +02:00
CHANGELOG.md Implement OneHotEncoder (#384) 2019-05-15 08:00:46 +02:00
composer.json Update to phpunit 8 and bump min php to 7.2 (#367) 2019-04-10 20:42:59 +02:00
composer.lock Update dependencies and phpstan (#383) 2019-05-14 22:43:08 +02:00
CONTRIBUTING.md Add performance test for LeastSquares (#263) 2018-03-10 21:48:16 +01:00
ecs.yml Remove phpunit readAttributes deprecated methods (#372) 2019-04-12 07:49:30 +02:00
LICENSE Add Andrew to license (#380) 2019-05-13 20:12:42 +02:00
mkdocs.yml Mnist Dataset (#326) 2018-11-07 08:02:56 +01:00
phpbench.json Add performance test for LeastSquares (#263) 2018-03-10 21:48:16 +01:00
phpstan.neon Update phpstan & easy coding standard (#366) 2019-03-25 14:55:14 +01:00
phpunit.xml Remove enforceTimeLimit flag from phpunit and update dependencies (#328) 2018-11-07 17:58:40 +01:00
README.md Implement OneHotEncoder (#384) 2019-05-15 08:00:46 +02:00

PHP-ML - Machine Learning library for PHP

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

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.2.

Simple example of classification:

require_once __DIR__ . '/vendor/autoload.php';

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);

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

Awards

Documentation

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

Installation

Currently this library is in the process of being developed, 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.

Datasets

Public datasets are available in a separate repository php-ai/php-ml-datasets.

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)