GithubHelp home page GithubHelp logo

ex00 / docker-mlflow Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 14 KB

docker container for mlflow

License: Apache License 2.0

Dockerfile 100.00%
docker model-management mlflow machine-learning ml

docker-mlflow's Introduction

Non-official docker image for MLflow

MLflow documentation

Build

git clone https://github.com/ex00/docker-mlflow.git
cd docker-mlflow
docker build -t ex00/docker-mlflow .

Usage

docker run -d -p 5000:5000 -p 6233:6233 --name mlflow-container ex00/docker-mlflow

after first build you can use next command:

docker start mlflow-container

Run examples

docker exec -i mlflow-container python /examples/example.py

You should get same output in console

Running example.py
Train model
Score of LogisticRegression: 0.6666666666666666
Model saved in run 92568a4725634a6abbca71bf1ef3fdfc
Success

Also you can check results in mlflow ui - http://$(docker-machine ip):5000

run and check model:

docker exec -i mlflow-container mlflow sklearn serve --port 6233 --host 0.0.0.0 -r 92568a4725634a6abbca71bf1ef3fdfc model
curl -d '[{"x": 1}, {"x": -1}]' -H 'Content-Type: application/json' -X POST $(docker-machine ip):6233/invocations

result:

{
    "predictions": [
        1,
        0
    ]
}

Run example project in docker

docker exec -i mlflow-container mlflow run https://github.com/mlflow/mlflow-example.git -P alpha=0.4

Example log local model in docker mlflow

python examples/test_connect_to_docker.py http://$(docker-machine ip):5000

docker-mlflow's People

Contributors

ex00 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

kartikmehta09

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.