Giter VIP home page Giter VIP logo

california_housing_benchmarks's Introduction

california_housing_benchmarks

observing behaviour of learning algorithms on regression task with feature scaling

Info

This is a research project on regression.
Goal of this project is to observe how traditional machine learning algorithms adapt real world data.

The example which was followed for studies is california housing dataset
https://scikit-learn.org/stable/modules/generated/sklearn.datasets.fetch_california_housing.html

Total 10 machine learning models were trained on california housing dataset and benchmarked.
Performance metrics used for benchmark are mean squared error, training time and inference time

Usage

For installing requirements, do
$cd california_housing_benchmarks
$pip install requirements.txt

For training your own machine learning models on California Housing, do
$python train.py


Review

The train.py script trains following models and generates benchmarks

models mses training times
LinearRegression 0.3543 0.0136
Ridge 0.3543 0.006
Lasso 0.3629 0.0229
SVR 0.2338 11.6984
KernelRidge 0.3585 41.7658
GaussianProcessRegressor 828.3268 84.7025
DecisionTreeRegressor 0.3621 0.2184
RandomForestRegressor 0.1729 25.9781
AdaBoostRegressor 0.1684 34.1281
GradientBoostingRegressor 0.1963 7.9679

Bonus! - Inference API slash Web App

You can run the API directly into your browser to predict housing housing price.
Go find sample example features to predict on homepage.
To run the web app, do
$pip install requirements.txt
$python app.py

Open http://localhost:5000/ on your local machine.

API in action

image

california_housing_benchmarks's People

Contributors

sonwanesuresh95 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.