Giter Site home page Giter Site logo

databricks-mlflow-mlops-azureml's Introduction

Databricks-MLflow-MLOps-AzureML

Introduction

Using databricks mlflow model registry with azureml to build out an mlops pipeline

MLflow Model Registry Web-hook for MLOps

MLflow Model Registry is a central repository to store and query models for production use and  consumable across different teams. Users can publish and version models, discover new models and model  versions, request and approve stage transitions, pull information about models from production  systems, and download model artifacts.

Through the web-hook APIs you can automate devops pipelines

Getting Started

Dependencies

Instructions

Create test web-hook

json='{"model_name": "$model_name",    "events": ["TRANSITION_REQUEST_CREATED"],    "description": "Teams notifications",   "status": "TEST_MODE",    "http_url_spec": {      "url": "$webhook_url",      "secret": "anyRandomString"}}'
url='https://$region.azuredatabricks.net/api/2.0/mlflow/registry-webhooks/create'


result=`curl -X POST -H "Accept: application/json" -H "Authorization: Bearer ${token}" --data "$json" $url`
echo result: $result

List web-hook

json='{"model_name": "$model_name"}'
url='https://$region.azuredatabricks.net/api/2.0/mlflow/registry-webhooks/list'
result=`curl -X GET -H "Accept: application/json" -H "Authorization: Bearer ${token}" --data "$json" $url`

echo result: $result

Test web-hook

json='{"id":"$id"}'
url='https://$region.azuredatabricks.net/api/2.0/mlflow/registry-webhooks/test'
result=`curl -X POST -H "Accept: application/json" -H "Authorization: Bearer ${token}" --data "$json" $url`

echo result: $result

Activate the web-hook now


json='{"id":"$id", "status": "ACTIVE"}'
url='https://$region.azuredatabricks.net/api/2.0/mlflow/registry-webhooks/update'
result=`curl -X PATCH -H "Accept: application/json" -H "Authorization: Bearer ${token}" --data "$json" $url`

echo result: $result

Output

databricks-mlflow-mlops-azureml's People

Contributors

magrathj avatar

Watchers

James Cloos avatar  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.