Coder Social home page Coder Social logo

felix-exel / mlflow Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 39 KB

MLflow example to track Parameters and Metrics by using MLproject Functionality

License: MIT License

Dockerfile 0.66% Jupyter Notebook 80.63% Python 18.71%
mlops mlflow mlflow-docker mlflow-projects time-series-forecasting tensorflow tensorflow-dataset-api tensorflow2 tensorflow-dataset

mlflow's Introduction

MLflow example to track Parameter and Metrics by using MLproject Functionality

This MLflow example uses a simple LSTM-based time series forecasting model in TensorFlow 2 to demonstrate the Tracking and MLproject Functionality.
The Dataset can be found here: https://archive.ics.uci.edu/ml/datasets/individual+household+electric+power+consumption
Related Blog Post: https://www.novatec-gmbh.de/blog/mlflow-tracking-von-parametern-und-metriken/

Requirements

  • Mlflows MLproject will build a conda environment from the conda.yaml file at runtime. Therefore Anaconda or Miniconda must be installed.
  • MLflow must be installed: pip install mlflow
  • MLflow will look for a git executable to track the git commit for every experiment. To disable this:
    export GIT_PYTHON_REFRESH=quiet

Quick Start

MLflow Server with Docker

If docker and docker-compose is installed, use docker-compose.yaml to start a MLflow server and MySQL backend:
docker-compose up -d
Set environment variables for MLflow:
export MLFLOW_TRACKING_URI=mysql+pymysql://mlflow:mlflow@localhost:3306/mlflow
export MLFLOW_ARTIFACT_URI=http://localhost:5000
Start the MLflow Experiments:
mlflow run .

MLflow Server with SQLite

To use a SQLite backend and to start a local MLflow server, change the directory to the repository and use:
mlflow server --backend-store-uri sqlite:///mlflow.db --default-artifact-root ./mlruns --host 0.0.0.0
Set environment variables for MLflow:
export MLFLOW_TRACKING_URI=sqlite:///mlflow.db
export MLFLOW_ARTIFACT_URI=http://localhost:5000
Start the MLflow Experiments:
mlflow run .

Access the MLflow Dashboard: http://localhost:5000

Jupyter Notebook

There is a Jupyter Notebook available to explore the code in detail. For this purpose create a new conda environment from the conda.yaml, activate the environment and start a jupyter server.

mlflow's People

Contributors

felix-exel avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

usmandroid

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.