Giter VIP home page Giter VIP logo

mlflowtest's Introduction

Steps to run this mlflow package:

Create env using conda.yaml or install mlflow and pyenv:

conda create -f conda.yaml
conda activate mlflow-env

or

pip install mlflow
pip install pyenv

In order to train a model, run this command from the root directory.

Alpha and L1_ratio values can be any number between 0 and 1:

mlflow run . -P alpha=0.1 -P l1_ratio=0.9

Start the user interface locally (run from root dir)

mlflow ui

Now the UI is availbale at 127.0.0.1:5000

Serve a model as a REST API locally

Get the model from the UI under artifacts in the experiments module

example: file:///Users/roaldbronstad/PycharmProjects/MlFlowTest/mlruns/0/3599a7c4d00647d3a3021af80a29e5c8/artifacts/model

mlflow models serve -m **path_to_your_model** -p 1234

Invoke a prediction from the served model:

curl http://127.0.0.1:1234/invocations -H "Content-Type:application/json" -d '{ "dataframe_split": { "columns":["fixed acidity", "volatile acidity", "citric acid", "residual sugar", "chlorides", "free sulfur dioxide", "total sulfur dioxide", "density", "pH" , "sulphates", "alcohol"], "data":[[8.5, 0.6, 0, 1.5, 0.065, 17, 75, 0.86, 3.6, 0.6, 14]] } }'

mlflowtest's People

Contributors

roaldvarner avatar

Watchers

Roald Brønstad avatar

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.