Git Product home page Git Product logo

wine-quality-predictor-1's Introduction

wine-quality-predictor

A demo on how to package and deploy machine learning code. In this sample, we learn to:

  • make a proper python package, enabling portability of the machine learning training code
  • write a unit test
  • write a custom Command Line Tool
  • automatically deploy our package to a private repository if the unit tests are successful

Once the whole pipeline has been executed, the package is available for installation via pip.

QUICKSTART

Package installation in a virtual env

virtualenv venv_wqp
source venv_wqp/bin/activate
pip install wqp==1.0.0 --extra-index-url https://pypi.fury.io/ngallot/

Train wine quality predictor

wqp jobs train --data-path http://archive.ics.uci.edu/ml/machine-learning-databases/wine-quality/winequality-red.csv

Output:

INFO:wqp.main:Starting wine quality predictor training...
INFO:wqp.main:Fetching data...
INFO:wqp.main:Building train and test datasets...
INFO:wqp.main:Fitting model...
INFO:wqp.main:Evaluating model...
INFO:wqp.main:Finished model evaluation. Metrics: {'rmse': 0.7401465102553071, 'mae': 0.6175043256143696, 'r2': 0.04206888455849722}

That's it!

NB: I emphasize the fact that here, we absolutely do not care about the performance of the machine learning model, as it's out of the topic :-)

wine-quality-predictor-1's People

Contributors

ngallot 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.