learn-mlflow

This repo is meant for learning of MLflow.

The official documentation:
https://mlflow.org/docs/latest/tutorials-and-examples/tutorial.html

Good intro video:
Introduction To MLflow-An Open Source Platform for the Machine Learning Lifecycle

Creating virtual environment

python -m venv .venv

Activate virtual environment

.venv\Scripts\Activate.ps1

Installation

# Install MLflow
pip install mlflow

# Install MLflow with extra ML libraries and 3rd-party tools
pip install mlflow[extras]

# Install a lightweight version of MLflow
pip install mlflow-skinny
pip install scikit-learn

Clone directory

git clone https://github.com/mlflow/mlflow

Training the model

# Make sure the current working directory is 'examples'
python sklearn_elasticnet_wine/train.py

# Alternatively
# I copied the code to main.py in my own root project folder. then run...
python main.py

Artefacts