All Projects → denissimon → prediction-builder

denissimon / prediction-builder

Licence: MIT license
A library for machine learning that builds predictions using a linear regression.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to prediction-builder

Tensorflow Resources
Curated Tensorflow code resources to help you get started with Deep Learning.
Stars: ✭ 330 (+208.41%)
Mutual labels:  regression, prediction
Ml
A high-level machine learning and deep learning library for the PHP language.
Stars: ✭ 1,270 (+1086.92%)
Mutual labels:  regression, prediction
Machine Learning Octave
🤖 MatLab/Octave examples of popular machine learning algorithms with code examples and mathematics being explained
Stars: ✭ 637 (+495.33%)
Mutual labels:  regression, prediction
RVM-MATLAB
MATLAB code for Relevance Vector Machine using SB2_Release_200.
Stars: ✭ 38 (-64.49%)
Mutual labels:  regression, prediction
Mlbox
MLBox is a powerful Automated Machine Learning python library.
Stars: ✭ 1,199 (+1020.56%)
Mutual labels:  regression, prediction
prediction
Tidy, Type-Safe 'prediction()' Methods
Stars: ✭ 86 (-19.63%)
Mutual labels:  regression, prediction
Metida.jl
Julia package for fitting mixed-effects models with flexible random/repeated covariance structure.
Stars: ✭ 19 (-82.24%)
Mutual labels:  regression
vlainic.github.io
My GitHub blog: things you might be interested, and probably not...
Stars: ✭ 26 (-75.7%)
Mutual labels:  prediction
acme2
Another PHP client for acme protocal (version 2) implementation, used for generating letsencrypt's free ssl certificates.
Stars: ✭ 45 (-57.94%)
Mutual labels:  composer
Diebold-Mariano-Test
This Python function dm_test implements the Diebold-Mariano Test (1995) to statistically test forecast accuracy equivalence for 2 sets of predictions with modification suggested by Harvey et. al (1997).
Stars: ✭ 70 (-34.58%)
Mutual labels:  prediction
Deep-learning-model-deploy-with-django
Serving a keras model (neural networks) in a website with the python Django-REST framework.
Stars: ✭ 76 (-28.97%)
Mutual labels:  prediction
PlasFlow
Software for prediction of plasmid sequences in metagenomic assemblies
Stars: ✭ 74 (-30.84%)
Mutual labels:  prediction
TCSTK-Angular
TIBCO Cloud™ Composer - Angular Libraries
Stars: ✭ 12 (-88.79%)
Mutual labels:  composer
PRISM
An alternative to MCMC for rapid analysis of models
Stars: ✭ 40 (-62.62%)
Mutual labels:  regression
geoip2-geolite2-composer
This project aims to provide an easy solution to require GeoIP2 / GeoLite2 databases inside your project using composer.
Stars: ✭ 15 (-85.98%)
Mutual labels:  composer
packagist
🐳 Dockette out-of-box Packagist (Nginx / Solr 6 / PHP 7.1+FPM)
Stars: ✭ 32 (-70.09%)
Mutual labels:  composer
hawk.php
PHP Errors catching and monitoring
Stars: ✭ 18 (-83.18%)
Mutual labels:  composer
Cubist
A Python package for fitting Quinlan's Cubist regression model
Stars: ✭ 22 (-79.44%)
Mutual labels:  regression
PhpBotFramework
A framework for Telegram Bot API written in PHP.
Stars: ✭ 56 (-47.66%)
Mutual labels:  composer
Minecraft-Skin-Renderer
Minecraft 3D Skin renderer with composer support and flexible rotation configuration
Stars: ✭ 14 (-86.92%)
Mutual labels:  composer

PredictionBuilder

Latest Stable Version Total Downloads License

PredictionBuilder is a library for machine learning that builds predictions using a linear regression.

Requirements

This project requires PHP 5.4 or higher because makes use of trait and short array syntax.

Installation

You can install the library by Composer. Add this to your project's composer.json:

"require": {
    "denissimon/prediction-builder": "*"
}

Then run php composer.phar install (or composer install).

Example

use PredictionBuilder\PredictionBuilder;

require_once __DIR__ . '/vendor/autoload.php';

$data = [[1,20],[2,70],[2,45],[3,81],[5,73],[6,80],[7,110]];
$x = 4.5;

// What is the expected y value for a given x value?
try {
    $prediction = new PredictionBuilder($x, $data);
    $result = $prediction->build(); // y = 76.65
} catch (\Exception $e) {
    echo $e->getMessage(), "\n";
}

The returned object has the following properties:

$result->ln_model linear model that fits the data: "29.56362+10.46364x"

$result->cor correlation coefficient: 0.8348

$result->x given x value: 4.5

$result->y predicted y value: 76.65

License

Licensed under the MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].