Skip to content

Managing machine learning life-cycle with MLflow tutorial

Notifications You must be signed in to change notification settings

osin-vladimir/mlflow_tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Managing ML-lifecycle with MLflow

Installation

  1. Clone this repository using git or download using Github interface

  2. Install miniconda distribution for python 3.7 -> link

  3. Open Anaconda Prompt (Miniconda 3) navigate to the tutorial folder and install requirements:

    • Optional: you can create separate conda environment for this tutorial from environment file:
      conda env create -f conda.yaml
      
      conda activate mlflow-tutorial
      
    • Installing requirements from requirements.txt file:
      pip install -r requirements.txt -f https://download.pytorch.org/whl/torch_stable.html
      
  4. Launch Jupyter Lab from from the tutorial directory:

    jupyter lab
    
  5. Launch MLflow server:

    mlflow server --backend-store-uri="sqlite:///C:\\path\\to\\project_folder\\backend\\mlflow_data.db" 
                  --default-artifact-root="file:///C:\\path\\to\\project_folder\\artifact_store\\"
    
    • Parameters:

      • backend-store-uri - URI to which to persist experiment and run data (sqlite database in our case).
      • default-artifact-root - Local or S3 URI to store artifacts, for new experiments (local folder in our case).
    • Hint: you can launch MLflow server also from terminal inside Jupyter Lab interface.

  6. Make sure that you can access mlflow server and jupyter notebook from your browser :

Note: There could be some minor changes in the dependencies and files, thus make sure to double-check prior to the event. Note: Tutorial functionality was tested on Windows 10.

Congrats! You are ready good to go!

About

Managing machine learning life-cycle with MLflow tutorial

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published