# PHP-ML - Machine Learning library for PHP
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.0-8892BF.svg)](https://php.net/)
[![Latest Stable Version](https://img.shields.io/packagist/v/php-ai/php-ml.svg)](https://packagist.org/packages/php-ai/php-ml)
[![Build Status](https://scrutinizer-ci.com/g/php-ai/php-ml/badges/build.png?b=develop)](https://scrutinizer-ci.com/g/php-ai/php-ml/build-status/develop)
[![Documentation Status](https://readthedocs.org/projects/php-ml/badge/?version=master)](http://php-ml.readthedocs.org/)
[![Total Downloads](https://poser.pugx.org/php-ai/php-ml/downloads.svg)](https://packagist.org/packages/php-ai/php-ml)
[![License](https://poser.pugx.org/php-ai/php-ml/license.svg)](https://packagist.org/packages/php-ai/php-ml)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/php-ai/php-ml/badges/quality-score.png?b=develop)](https://scrutinizer-ci.com/g/php-ai/php-ml/?branch=develop)
![PHP-ML - Machine Learning library for PHP](docs/assets/php-ml-logo.png)
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:
```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);
$classifier->predict([3, 2]);
// return 'b'
```
## Documentation
To find out how to use PHP-ML follow [Documentation](http://php-ml.readthedocs.org/).
## 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](https://github.com/php-ai/php-ml-examples).
## Features
* Association rule learning
* [Apriori](http://php-ml.readthedocs.io/en/latest/machine-learning/association/apriori/)
* Classification
* [SVC](http://php-ml.readthedocs.io/en/latest/machine-learning/classification/svc/)
* [k-Nearest Neighbors](http://php-ml.readthedocs.io/en/latest/machine-learning/classification/k-nearest-neighbors/)
* [Naive Bayes](http://php-ml.readthedocs.io/en/latest/machine-learning/classification/naive-bayes/)
* Decision Tree (CART)
* Ensemble Algorithms
* Bagging (Bootstrap Aggregating)
* Random Forest
* AdaBoost
* Linear
* Adaline
* Decision Stump
* Perceptron
* Regression
* [Least Squares](http://php-ml.readthedocs.io/en/latest/machine-learning/regression/least-squares/)
* [SVR](http://php-ml.readthedocs.io/en/latest/machine-learning/regression/svr/)
* Clustering
* [k-Means](http://php-ml.readthedocs.io/en/latest/machine-learning/clustering/k-means/)
* [DBSCAN](http://php-ml.readthedocs.io/en/latest/machine-learning/clustering/dbscan/)
* Metric
* [Accuracy](http://php-ml.readthedocs.io/en/latest/machine-learning/metric/accuracy/)
* [Confusion Matrix](http://php-ml.readthedocs.io/en/latest/machine-learning/metric/confusion-matrix/)
* [Classification Report](http://php-ml.readthedocs.io/en/latest/machine-learning/metric/classification-report/)
* Workflow
* [Pipeline](http://php-ml.readthedocs.io/en/latest/machine-learning/workflow/pipeline)
* Neural Network
* [Multilayer Perceptron](http://php-ml.readthedocs.io/en/latest/machine-learning/neural-network/multilayer-perceptron/)
* [Backpropagation training](http://php-ml.readthedocs.io/en/latest/machine-learning/neural-network/backpropagation/)
* Cross Validation
* [Random Split](http://php-ml.readthedocs.io/en/latest/machine-learning/cross-validation/random-split/)
* [Stratified Random Split](http://php-ml.readthedocs.io/en/latest/machine-learning/cross-validation/stratified-random-split/)
* Preprocessing
* [Normalization](http://php-ml.readthedocs.io/en/latest/machine-learning/preprocessing/normalization/)
* [Imputation missing values](http://php-ml.readthedocs.io/en/latest/machine-learning/preprocessing/imputation-missing-values/)
* Feature Extraction
* [Token Count Vectorizer](http://php-ml.readthedocs.io/en/latest/machine-learning/feature-extraction/token-count-vectorizer/)
* [Tf-idf Transformer](http://php-ml.readthedocs.io/en/latest/machine-learning/feature-extraction/tf-idf-transformer/)
* Datasets
* [Array](http://php-ml.readthedocs.io/en/latest/machine-learning/datasets/array-dataset/)
* [CSV](http://php-ml.readthedocs.io/en/latest/machine-learning/datasets/csv-dataset/)
* [Files](http://php-ml.readthedocs.io/en/latest/machine-learning/datasets/files-dataset/)
* Ready to use:
* [Iris](http://php-ml.readthedocs.io/en/latest/machine-learning/datasets/demo/iris/)
* [Wine](http://php-ml.readthedocs.io/en/latest/machine-learning/datasets/demo/wine/)
* [Glass](http://php-ml.readthedocs.io/en/latest/machine-learning/datasets/demo/glass/)
* Models management
* [Persistency](http://php-ml.readthedocs.io/en/latest/machine-learning/model-manager/persistency/)
* Math
* [Distance](http://php-ml.readthedocs.io/en/latest/math/distance/)
* [Matrix](http://php-ml.readthedocs.io/en/latest/math/matrix/)
* [Set](http://php-ml.readthedocs.io/en/latest/math/set/)
* [Statistic](http://php-ml.readthedocs.io/en/latest/math/statistic/)
## Contribute
- [Issue Tracker: github.com/php-ai/php-ml](https://github.com/php-ai/php-ml/issues)
- [Source Code: github.com/php-ai/php-ml](https://github.com/php-ai/php-ml)
You can find more about contributing in [CONTRIBUTING.md](CONTRIBUTING.md).
## License
PHP-ML is released under the MIT Licence. See the bundled LICENSE file for details.
## Author
Arkadiusz Kondas (@ArkadiuszKondas)
没有合适的资源?快使用搜索试试~ 我知道了~
基于PHP-ML库实现机器学习.zip
共293个文件
php:175个
txt:51个
md:36个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 152 浏览量
2024-04-29
11:02:15
上传
评论
收藏 623KB ZIP 举报
温馨提示
机器学习 机器学习使计算机能够从研究数据和统计信息中学习。 机器学习是迈向人工智能(AI)方向的其中一步。 机器学习是一种程序,可以分析数据并学习预测结果。 从何处开始? 在本教程中,我们将回到数学并研究统计学,以及如何根据数据集计算重要数值。 我们还将学习如何使用各种 Python 模块来获得所需的答案。 并且,我们将学习如何根据所学知识编写能够预测结果的函数。 数据集 在计算机中,数据集指的是任何数据集合。它可以是从数组到完整数据库的任何内容。 通过查看数据库,我们可以看到最受欢迎的颜色是白色,最老的车龄是 17 年,但是如果仅通过查看其他值就可以预测汽车是否具有 AutoPass,该怎么办? 这就是机器学习的目的!分析数据并预测结果! 在机器学习中,通常使用非常大的数据集。在本教程中,我们会尝试让您尽可能容易地理解机器学习的不同概念,并将使用一些易于理解的小型数据集。 数据类型 如需分析数据,了解我们要处理的数据类型非常重要。 我们可以将数据类型分为三种主要类别: 数值(Numerical) 分类(Categorical) 序数(Ordinal) 数值数据是数字,可以分为两种数值
资源推荐
资源详情
资源评论
收起资源包目录
基于PHP-ML库实现机器学习.zip (293个子文件)
glass.csv 17KB
wine.csv 11KB
iris.csv 4KB
languages.csv 2KB
dataset.csv 83B
humbug.json.dist 151B
svm-train.exe 133KB
svm-predict.exe 105KB
svm-scale.exe 79KB
.gitignore 58B
.gitkeep 0B
installed.json 2KB
composer.json 739B
LICENSE 1KB
LICENSE 1KB
composer.lock 44KB
README.md 6KB
README.md 5KB
index.md 4KB
distance.md 2KB
CHANGELOG.md 2KB
matrix.md 2KB
set.md 2KB
apriori.md 2KB
svc.md 2KB
pipeline.md 2KB
svr.md 2KB
classification-report.md 2KB
least-squares.md 2KB
token-count-vectorizer.md 1KB
glass.md 1KB
CONTRIBUTING.md 1KB
wine.md 1KB
imputation-missing-values.md 1KB
statistic.md 1KB
dbscan.md 1KB
k-means.md 1KB
stratified-random-split.md 1KB
files-dataset.md 1KB
k-nearest-neighbors.md 1023B
tf-idf-transformer.md 954B
backpropagation.md 898B
normalization.md 860B
confusion-matrix.md 844B
random-split.md 788B
iris.md 765B
multilayer-perceptron.md 748B
naive-bayes.md 726B
persistency.md 673B
accuracy.md 561B
csv-dataset.md 494B
array-dataset.md 455B
DecisionTree.php 15KB
ClassLoader.php 13KB
DecisionStump.php 10KB
Apriori.php 8KB
Perceptron.php 8KB
AdaBoost.php 7KB
AprioriTest.php 7KB
FuzzyCMeans.php 7KB
Matrix.php 6KB
Space.php 6KB
NaiveBayes.php 6KB
SupportVectorMachine.php 5KB
Bagging.php 5KB
BaggingTest.php 5KB
MatrixTest.php 5KB
RandomForest.php 5KB
TokenCountVectorizer.php 4KB
ImputerTest.php 4KB
TokenCountVectorizerTest.php 4KB
Set.php 4KB
ClassificationReport.php 4KB
Backpropagation.php 4KB
DecisionTreeLeaf.php 4KB
Adaline.php 4KB
LeastSquaresTest.php 4KB
DecisionTreeTest.php 3KB
RandomSplitTest.php 3KB
KNearestNeighborsTest.php 3KB
OneVsRest.php 3KB
NormalizerTest.php 3KB
DecisionStumpTest.php 3KB
ClassificationReportTest.php 3KB
Normalizer.php 3KB
Cluster.php 3KB
PerceptronTest.php 3KB
SetTest.php 3KB
AdalineTest.php 3KB
MultilayerPerceptron.php 3KB
SVCTest.php 2KB
DBSCAN.php 2KB
AdaBoostTest.php 2KB
LeastSquares.php 2KB
Point.php 2KB
NaiveBayesTest.php 2KB
DataTransformer.php 2KB
InvalidArgumentException.php 2KB
Pipeline.php 2KB
classify.php 2KB
共 293 条
- 1
- 2
- 3
资源评论
野生的狒狒
- 粉丝: 2379
- 资源: 2110
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功