PHP Machine Learning library
Go to file
Arkadiusz Kondas 2f152b4a34 clean up travis config 2016-06-30 23:49:43 +02:00
bin/libsvm add windows libsvm binaries 2016-05-07 11:22:37 +02:00
data add glass identification dataset 2016-04-09 15:46:54 +02:00
docs update docs example 2016-05-31 18:02:30 +02:00
src/Phpml remove osx from travis - dont work with php 7.0 2016-06-30 23:27:17 +02:00
tests/Phpml php-cs-fixer 2016-06-17 00:34:15 +02:00
tools create php-cs-fixer start script 2016-04-04 22:50:14 +02:00
var start to implement SVM with libsvm 2016-05-05 23:29:11 +02:00
.gitignore revert bin dir 2016-05-05 22:15:34 +02:00
.travis.yml clean up travis config 2016-06-30 23:49:43 +02:00
LICENSE create some text in readme 2016-02-08 23:07:16 +01:00
README.md implement TfIdf transformation 2016-06-15 16:04:09 +02:00
composer.json revert bin dir 2016-05-05 22:15:34 +02:00
composer.lock revert bin dir 2016-05-05 22:15:34 +02:00
humbug.json.dist add config for humbug - mutation test framework 2016-05-03 12:35:57 +02:00
mkdocs.yml update readthedocs menu 2016-05-14 21:50:48 +02: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

Build Status Documentation Status Total Downloads License Scrutinizer Code Quality

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

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

Features

Contribute

  • Issue Tracker: github.com/php-ai/php-ml/issues
  • Source Code: github.com/php-ai/php-ml

After installation, you can launch the test suite in project root directory (you will need to install dev requirements with Composer)

bin/phpunit

License

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

Author

Arkadiusz Kondas (@ArkadiuszKondas)