Giter VIP home page Giter VIP logo

nerdward / mlops_project Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 2.0 712 KB

An end to end ML project. Using MLflow for experiment tracking and model registry. Prefect for workflow orchestration. S3 for artifacts storage. AWS Lambda/ ECR for serverless model serving. AWS REST API gateway as endpoint to lambda function. GitHub Actions for CI/CD.

Jupyter Notebook 86.74% Python 7.59% Dockerfile 0.25% HCL 4.82% Shell 0.58% Makefile 0.02%
aws continuous-delivery continuous-integration devops experiment-tracking infrastructure-as-code machine-learning model-registry workflow-orchestration

mlops_project's Introduction

Problem Description

A Real Estate company have data on some properties i.e house. Data like the number of bedrooms, size of the front porch etc. They want a model that predicts the price of the house given the house features. This is a regression task. The machine learning engineer (me) sourced data from Kaggle. The dataset contains over 100 columns of different features of houses. He cleaned the data and trained an xgboost model on it.

Cloud

Cloud Infrastructure: cloud

Reproducibility

Run this command to setup the python environment and pre-commit

make setup

Experiment tracking and model registry

MLflow was used for experiment traccking and model registering.

To start up the mlflow server, run

bash orchestration/server.sh

keep this terminal open for the training pipeline

Workflow Orchestration

Prefect was used for workflow orchestration to get the data, preprocess it, run hyperparameter tuning with hyperopt and train the xbgoost model.

To start the training pipeline:

bash orchestration/train.sh

Model deployment

Checkout from develop branch to ci-cd branch

git checkout -b ci-cd develop

Change the infrastructure production variables to your choice.

Commit and push the changes to the ci-cd remote branch Make a pull request and merge with develop branch

Testing

terraform init -backend-config="key=mlops-zoomcamp-prod.tfstate" -reconfigure
terraform output rest_api_url

Change the url in the deployment test file to the rest api url

mlops_project's People

Contributors

nerdward avatar

Stargazers

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