Examples of the use of PHP-ML library
Interesting demo/examples projects using php-ml:
- Code Review Estimator - Simple showcase of machine learning for code review cost estimation.
Many of samples from this repository was used in my articles
- Text data classification with BBC news article dataset
- Clustering Chicago robberies locations with k-means algorithm
- Predict air pollution with k-Nearest Neighbors and PHP
To test example, select one of the following and run it from main folder (each category has its own folder).
php classification/languageDetection.php
Classification:
languageDetection.php- classifier build for language detectionminst.php- recognize handwritten digits from MNIST dataset (to download dataset usebin/download-mnist.sh)spamFilter.php- simple spam filter with example datasetbbc.php- example of text classification
Regression:
wineQuality.php- regression model to assess the quality of the wine
PHP-ML is released under the MIT Licence. See the bundled LICENSE file for details.
Arkadiusz Kondas (@ArkadiuszKondas)