PHP-ML

用于 PHP 的机器学习库。(PHP-ML - Machine Learning library for PHP.)

  • 所有者: php-ai/php-ml
  • 平台: Linux, Mac, Windows
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    2
      比较:

Github星跟踪图

PHP-ML —— 用于 PHP 的机器学习库。

用 PHP 实现机器学习的新方法。算法、交叉验证、神经网络、预处理、特征提取和更多的在一个库中。

PHP-ML 要求 PHP>=7.2。

分类的简单例子:

require_once __DIR__ . '/vendor/autoload.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);
echo $classifier->predict([3, 2]);
// return 'b'

文档

要了解如何使用PHP-ML,请遵循文档

安装

目前该库正在开发中,但您可以使用 Composer 进行安装:

composer require php-ai/php-ml

例子

示例脚本可在单独的存储库 php-ai/php-ml-examples 中找到。

数据集

公共数据集可在单独的存储库 php-ai/php-ml-datasets 中获得。

特性

主要指标

概览
名称与所有者php-ai/php-ml
主编程语言PHP
编程语言PHP (语言数: 2)
平台Linux, Mac, Windows
许可证MIT License
所有者活动
创建于2016-02-08 20:39:41
推送于2020-05-15 05:49:43
最后一次提交2020-05-15 07:44:34
发布数15
最新版本名称0.9.0 (发布于 2020-05-15 07:44:34)
第一版名称v0.1.0 (发布于 2016-07-08 00:03:22)
用户参与
星数7.9k
关注者数546
派生数1.1k
提交数446
已启用问题?
问题数212
打开的问题数101
拉请求数185
打开的拉请求数4
关闭的拉请求数33
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?

PHP-ML - Machine Learning library for PHP

Minimum PHP Version
Latest Stable Version
Build Status
Documentation Status
Total Downloads
License
Coverage Status
Scrutinizer Code Quality

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.2.

Simple example of classification:

require_once __DIR__ . '/vendor/autoload.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);

echo $classifier->predict([3, 2]);
// return 'b'

Awards

Documentation

To find out how to use PHP-ML follow Documentation.

Installation

Currently this library is in the process of being developed, 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.

Datasets

Public datasets are available in a separate repository php-ai/php-ml-datasets.

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)