GithubHelp home page GithubHelp logo

santiagoahl / platzi-world-happiness Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 7.99 MB

A Machine Learning Model built in scikit-learn using Support Vector Regressors, Ensemble modeling with Gradient Boost Regressor and Grid Search Cross Validation.

License: MIT License

Python 100.00%
flask gradient-boosting-regressor grid-search-cross-validation scikitlearn-machine-learning svr-regression-prediction

platzi-world-happiness's Introduction


WHR
World Happiness Report

A Machine Learning Model API in scikit-learn using Support Vector Regressors and ensemble modeling with Gradient Boost Regressor and Cross Validation.

kaggle scikit-learn flask joblib json

Key FeaturesHow To UseCreditsLicense

screenshot

Key Features

This machine learning model predicts the happines score of a given country. This prediction is a number between 0 and 10. The dataset is taken from the World Happiness Report Kaggle Competition. So here are the key features of this project:

  • Prediction is based on this country's features:
    • high
    • low
    • gdp
    • family
    • lifexp
    • freedom
    • generosity
    • corruption
    • dystopia : Imaginary country that has the world's least-happy people.
  • Professional Modularization on this Project. Some modules are programmed using OOP.
  • Built with an Rest API programmed in Flask .
  • Based on Scikit-Learn modules and functions such like:
    • svm.SVR : Support Vector Regressor.
    • ensemble.GradientBoostingRegressor : Gradiente Boosting Regressors Ensemble method.
    • model_selection.GridSearchCV : Cross validation method.

How To Use

To clone and run this application, follow these steps

# Clone this repository
$ git clone https://github.com/santiagoahl/world-happiness.git

# Go into the repository
$ cd world-happiness

# Install dependencies
$ pip install -r requirements.txt

# Run the app
$ python3 server.py

#View results putting the following on your browser (If port 8080 is busy change it)

http://127.0.0.1:8080/predict

Credits

This software uses the following packages:

License

MIT


Web Site santiagoal.super.site  ·  GitHub @santiagoahl  ·  Twitter @sahumadaloz

platzi-world-happiness's People

Contributors

santiagoahl avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.