Giter Site home page Giter Site logo

mlops-course-python-best-practice's Introduction

MLOps - Python Practices Course

1. Course Description ๐Ÿ“š

This repository contains exercises related to the course on Python best practices, tools and workflows for MLOps.

The main goal here is to start from src/main.py and refactor it to a more maintainable and scalable codebase.

Some details about the codebase: a resnet model is loaded and used to make predictions on a sample image. The label list is available here: https://gist.github.com/yrevar/942d3a0ac09ec9e5eb3a.

2. Installation

First, you can fork the repository to your own GitHub account. Then, you can clone the repository to your local machine:

git clone https://github.com/<your-github>/mlops-course-python-best-practice.git

Installing the dependencies depends on the choices you make. You can either use venv, conda, poetry or uv.

3. Usage

If you wish to start the application, without any changes, you can run the following command:

python src/main.py

Then it's up to you to refactor the codebase and make it more maintainable and scalable. You can apply the following tools :

  • ruff or black for code formatting
  • mypy for static type checking
  • .pre-commit for pre-commit hooks
  • ruff for linting
  • Add some tests with pytest
  • Compute the coverage with pytest-cov
  • Add some documentation

mlops-course-python-best-practice's People

Contributors

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