This Swift library builds machine learning predictions using linear regression.
PredictionBuilder
PredictionBuilder builds machine learning predictions using linear regression.

About PredictionBuilder
PredictionBuilder is a PHP library for machine learning that builds predictions using linear regression. A caller supplies a set of x and y data pairs and an x value. The library fits a linear model to the data and returns the predicted y value for that x.
The returned result also includes the fitted model equation as a string, the correlation coefficient for the data, and the x and y values. The library is installed with Composer and is released under the MIT License. The source requires PHP 5.4 or higher. Its documented scope is linear regression only.
Key features
- Fits a linear regression model to a set of x and y data pairs
- Predicts the expected y value for a given x value
- Returns the fitted linear model equation as a string
- Returns the correlation coefficient for the supplied data
- Installable as a Composer package in PHP projects
- Released under the MIT License
- Open source and released under the MIT License
- Installable with Composer
- Returns the model equation and correlation coefficient alongside the prediction
- Requires PHP 5.4 or higher
- Documented scope is linear regression only
PredictionBuilder at a glance
- Category
- AI & Machine Learning › AI Data & Analytics
- Type
- Open-source project
- Pricing
- Not confirmed. Check the site
- Open source
- Yes · Source code
- Language
- English
- Last checked
- Oct 6, 2026 · Online when checked
- Listed
- Oct 5, 2026
PredictionBuilder alternatives
Tools and sites you could use instead, ranked by how closely they match.
Python package which helps to debug machine learning classifiers and explain their predictions.
LIME provides explanations for predictions made by machine learning classifiers.
MCGrad calibrates machine learning predictions across the full dataset and across segments defined by input features.
19 Questions assigns attributes to objects using machine learning and Bayesian inference, according to its project description.
oneDAL is a C++ and DPC++ library for accelerated machine learning routines on tabular data, governed by the UXL Foundation.
Popular in AI Data & Analytics
Well-known listings from the same topic.
PredictionBuilder FAQ
How do I install PredictionBuilder?
What does the build() method return?
Which PHP version is required?
Tell us and an editor will check it.
Claim the listing and suggest updates yourself. An editor checks every claim first.












