PHPackages                             zeopix/machine-learning - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. zeopix/machine-learning

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

zeopix/machine-learning
=======================

Simple Machine Learning POO Implementation

781[1 issues](https://github.com/zeopix/MachineLearning/issues)PHP

Since Apr 13Pushed 10y ago2 watchersCompare

[ Source](https://github.com/zeopix/MachineLearning)[ Packagist](https://packagist.org/packages/zeopix/machine-learning)[ RSS](/packages/zeopix-machine-learning/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

MachineLearning
===============

[](#machinelearning)

Simple stupid machine learning library for php

[![Build Status](https://camo.githubusercontent.com/b3c3d251f44f464a1e76a2df98506233cccd037408bb03bf9e3c865efb9d0bf1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7a656f7069782f4d616368696e654c6561726e696e672f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/zeopix/MachineLearning/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e365b1d3739298cb85d1e0bc5aa0e71c6e0573651313a3456e9689468369e8ca/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7a656f7069782f4d616368696e654c6561726e696e672f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/zeopix/MachineLearning/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/632346380edb8fc215c4c58b5b20888b6fc9920ef98a702a62086919739dd0f9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7a656f7069782f4d616368696e654c6561726e696e672f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/zeopix/MachineLearning/?branch=master)

###### Warning

[](#warning)

This library is not designed for production or high performance requirements, it's more a proof of concept and framework to play with Machine Learning Algorithms.

Features
--------

[](#features)

- Gradient Descent Algorithm
- Mean Scale Normalization
- Linear Hypothesis for multiple unlimited variables

Usage
-----

[](#usage)

Include with composer

```
composer require zeopix/machine-learning

```

#### Train your dataset

[](#train-your-dataset)

```
use Zeopix\MachineLearning\Application\Service\LinearRegressionService
use Zeopix\MachineLearning\Domain\Model\Value\VectorValue;

$linearRegressionService = new LinearRegressionService();
$data = [
 [[2,3], 1],
 [[4,6], 2]
];
$training = $linearRegressionService->train($data);

$prediction = $training->predict(new VectorValue([8,12]));

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/60d0745ede139f6a86b739f2649f3a3a2a2fccaf7391fc1c0c8e6d65afd08996?d=identicon)[zeopix](/maintainers/zeopix)

---

Top Contributors

[![zeopix](https://avatars.githubusercontent.com/u/688434?v=4)](https://github.com/zeopix "zeopix (11 commits)")

### Embed Badge

![Health badge](/badges/zeopix-machine-learning/health.svg)

```
[![Health](https://phpackages.com/badges/zeopix-machine-learning/health.svg)](https://phpackages.com/packages/zeopix-machine-learning)
```

###  Alternatives

[ip2location/ip2location-php

\[Official Release\] IP2Location PHP API to get location info from IPv4 and IPv6 address.

2154.1M37](/packages/ip2location-ip2location-php)[workerman/statistics

3512.8k](/packages/workerman-statistics)[humaidem/filament-map-picker

5920.8k](/packages/humaidem-filament-map-picker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
