An open API service indexing awesome lists of open source software.

https://github.com/kingabzpro/cicd-for-machine-learning

A beginner's project on automating the training, evaluation, versioning, and deployment of models using GitHub Actions.
https://github.com/kingabzpro/cicd-for-machine-learning

ci-cd cml guide hugging-face machine-learning mlops mlops-workflow

Last synced: 6 months ago
JSON representation

A beginner's project on automating the training, evaluation, versioning, and deployment of models using GitHub Actions.

Awesome Lists containing this project

README

          

# CICD-for-Machine-Learning
[![CI](https://github.com/kingabzpro/CICD-for-Machine-Learning/actions/workflows/ci.yml/badge.svg)](https://github.com/kingabzpro/CICD-for-Machine-Learning/actions/workflows/ci.yml)
[![Continuous Deployment](https://github.com/kingabzpro/CICD-for-Machine-Learning/actions/workflows/cd.yml/badge.svg)](https://github.com/kingabzpro/CICD-for-Machine-Learning/actions/workflows/cd.yml)
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/kingabzpro/CICD-for-Machine-Learning/blob/main/notebook.ipynb)

[![DataCamp](https://img.shields.io/badge/Datacamp-05192D?style=for-the-badge&logo=datacamp&logoColor=65FF8F)](https://www.datacamp.com/tutorial/ci-cd-for-machine-learning) [![Open in Spaces](https://huggingface.co/datasets/huggingface/badges/resolve/main/open-in-hf-spaces-md-dark.svg)](https://huggingface.co/spaces/kingabzpro/Drug-Classification)

Learn how to automate model training, evaluation, versioning, and deployment using GitHub Actions with the easiest MLOps guide available online.

## Project Description
In this project, we will be using scikit-learn pipelines to train our random forest algorithm and build a drug classifier. After training, we will automate the evaluation process using CML. Finally, we will build and deploy the web application to Hugging Face Hub.

From training to evaluation, the entire process will be automated using GitHub actions. All you have to do is push the code to your GitHub repository, and within two minutes, the model will be updated on Hugging Face with the updated app, model, and results.

> **Follow the tutorial:** https://www.datacamp.com/tutorial/ci-cd-for-machine-learning

## Pipeline

![CICD](./asset/CICD-pipeline.png)

## Results
| Model | Accuracy | F1 Score |
|------------------------|----------|----------|
| RandomForestClassifier | 97.0% | 94.0% |

![CM](./Results/model_results.png)