LAVS-TM / MLOPS

Complete Machine Learning in production using fastAPI, MLflow, Streamlit and Docker.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MLOPS Profile

This project describe a complete machine learning project in production, with the training and the deployement phase.

AUTHORS

Alexandre Lemonnier & Victor Simonin


Usage

Docker

You can build the docker images with the following command:

docker-compose up -d --build

Once the docker images are built and started, you can access to the following services:

To shutdown the docker containers, run the following command:

docker-compose down -v

Manual

The training of the model is in the src/train_model.py file. It is possible to train the model with the following command:

cd src
python train_model.py

A mlflow workflow is available to track the training. After a few training, to start the mlflow server, run the following command:

mlflow ui

To start the api, run the following command:

cd src
uvicorn api:app --reload

The streamlit front-end is available with the following command:

cd src
streamlit run model_app.py

About

Complete Machine Learning in production using fastAPI, MLflow, Streamlit and Docker.

License:MIT License


Languages

Language:Python 92.2%Language:Dockerfile 7.8%