![]()
PHP-ml 是 PHP 的机器学习库。同时包含算法,交叉验证,神经网络,预处理,特征提取等。
PHP-ML 要求 PHP >= 7.0。
简单的分类示例: 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'
关联规则式学习
分类
Adaline
Decision Stump
Perceptron
Bagging (Bootstrap Aggregating)
Random Forest
AdaBoost
Decision Tree (CART)
Ensemble Algorithms
Linear
回归
聚合
Metric
工作流
神经网络
交叉验证
预处理
特征提取
数据设置
Ready to use:
模式管理
Math
邮箱 626512443@qq.com
电话 18611320371(微信)
QQ群 235681453
Copyright © 2015-2024
备案号:京ICP备15003423号-3