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)