Giter Club home page Giter Club logo

mlops-batch-project-wandb's Introduction

MLOps batch example project, using WANDB

Toy project, that implements passive retraining for a batch prediction regression use case.

The project is not concerned with deployment or the development of the ML models. It uses the Boston housing data and can be run locally.

Tools used

Get started

Requirements

  • Weights and Biases account, which is free for personal use: https://wandb.ai/home. When you run one of the pipelines, you will be prompted for an API key, which can be found under settings.
  • Conda

Install

Install dependencies

conda env create --file conda.yml 

Install project as package

pip install -e .

Run project

Run training pipeline

make train_pipeline

This will run a training pipeline that will train a model, test it and potentially promote it to production status (by tagging the model arrtifact with a prod tag.

Run inference pipeline

make inference_pipeline

This will run an inference pipeline that will use the prod model to make predictions on new data (just a sample from the Boston housing data). A very simplistic drift can be configures in the main Hydra configuration.

Run drift detection on newest predictions

make drift_detection

This will run drift detection, that compares the data used to make the latest predictions with the data used to train the latest prod model.

Run hyperparameter sweep with random forest model

make sweep_random_forest

This will prepare a Weights and Biases hyperparameter sweep. You will be prompted in the terminal on how to actually run the sweep agent.

mlops-batch-project-wandb's People

Contributors

jesrav avatar

Watchers

 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.