PHP Machine Learning library
Go to file
Arkadiusz Kondas 93cbac2753 Merge pull request #24 from itcraftsmanpl/r2
Fix documentation badge
2016-10-25 20:14:55 +02: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 Add index entries 2016-09-17 22:06:13 +02:00
src/Phpml Rename demo datasets and add Dataset suffix 2016-09-30 14:02:08 +02:00
tests/Phpml Rename demo datasets and add Dataset suffix 2016-09-30 14:02:08 +02:00
tools create script for code coverage generation 2016-07-24 13:45:54 +02:00
var start to implement SVM with libsvm 2016-05-05 23:29:11 +02:00
.gitignore Apply comments / coding styles 2016-09-02 00:26:01 +02:00
.travis.yml remove hhvm from travis 2016-07-08 00:03:22 +02:00
CHANGELOG.md Update changelog 2016-10-15 20:54:41 +02:00
composer.json Update phpunit to 5.5 2016-09-21 21:46:16 +02:00
composer.lock Update phpunit to 5.5 2016-09-21 21:46:16 +02:00
CONTRIBUTING.md create contributing guide 2016-07-26 21:57:15 +02:00
humbug.json.dist add config for humbug - mutation test framework 2016-05-03 12:35:57 +02:00
LICENSE create some text in readme 2016-02-08 23:07:16 +01:00
mkdocs.yml Add docs for neural network 2016-08-14 19:14:56 +02:00
phpunit.xml add filter for code coverage 2016-05-03 12:03:36 +02:00
README.md Fix documentaion badge 2016-10-15 20:50:16 +02:00

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)