GithubHelp home page GithubHelp logo

vela-zz / mlops-trainee-udacity-course-4 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.94 MB

project for udacity mlops lecture4

License: MIT License

Python 0.55% Jupyter Notebook 99.45% Procfile 0.01%

mlops-trainee-udacity-course-4's Introduction

mlops-trainee-udacity-course-4

project for udacity mlops lecture4, build a simple Decision Tree model on census data.

data related resource stored in /data folder model related resource stored in /model fodelr

using dvc local_remote mode.

Install requirements

you can use poetry with conda. install conda environment first.

conda create -n mlops python=3.10
conda activate mlops
pip install poetry-conda

then

poetry install

or use pip

pip install -r requirements

[exception]: add local remote

mkdir ../local_dvc_remote
dvc remote add -d local_remote ../local_dvc_remote

Machine Learning running

Run simple ml pipeline by using mlflow+hydra

mlflow run . -P steps=data_cleaning,training

or run step by step

mlflow run . -P steps=data_cleaning

Test

pytest test_main.py

and

pytest src/training/test_model.py

Project Rubic

git

  • Set up git with GitHub Actions.

model buliding

  • Create a machine learning model, check src/training folder
  • Write unit tests, check test under src/training
  • Write a function that computes model metrics on slices of the data. check funciton src/training/model.py plot_model_disparity_on_fpr
  • Write a model card. check modelcoard under /model folder

API Creation

  • Create a REST API. check main.py
  • Create tests for an API. check test_main.py

API Deployment

  • Deploy an app to a Cloud Application Platform. check png under /screenshots folder
  • Query live API. check png under /screenshots folder. run request_sample.py

mlops-trainee-udacity-course-4's People

Contributors

vela-zz 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.