zeeml/machinelearning

此软件包最新版本(dev-master)没有可用的许可信息。

dev-master 2017-07-22 12:28 UTC

This package is not auto-updated.

Last update: 2024-09-15 02:43:05 UTC


README

build

MachineLearning

PHP机器学习库

$ml = new ML(Dataset::factory('/path/to/csv'));

$ml
    ->using([LinearRegression::class, LogisticRegression::class])
    ->epochs(12)
    ->fit()
;

$ml
    ->using([KNearestNeighbors::class])
    ->epochs(2)
    ->fit()
;

$ml->test();

$ml->stats();

$ml->predict(LinearRegression::class, Dataset::factory('/path/to/newCsv'));