Coder Social home page Coder Social logo

mlp-batch-scoring-template's Introduction

MLflow Pipelines Batch Scoring Template

The MLflow Batch Scoring Pipeline is an MLflow Pipeline for applying a registered MLflow model to a specified dataset.

For more information about the MLflow Batch Scoring Pipeline, check out the documentation at https://mlflow.org/docs/latest/pipelines.html#batch-scoring-pipeline. For more information about MLflow Pipelines, see https://mlflow.org/docs/latest/pipelines.html.

Installation instructions

  1. Install MLflow Pipelines: pip install mlflow[pipelines]
  2. Clone the MLflow Batch Scoring Pipeline template repository locally:
git clone https://github.com/mlflow/mlp-batch-scoring-template.git.
  1. Enter the root directory of the MLflow Batch Scoring Pipeline template: cd mlp-batch-scoring-template
  2. Install MLflow Batch Scoring Pipeline dependencies: pip install -r requirements.txt

Development Environment -- Databricks

Sync this repository with Databricks Repos and run the notebooks/databricks notebook on a Databricks Cluster running version 11.0 or greater of the Databricks Runtime or the Databricks Runtime for Machine Learning with workspace files support enabled.

Note: When making changes to pipelines on Databricks, it is recommended that you either edit files on your local machine and use dbx to sync them to Databricks Repos, as demonstrated here, or edit files in Databricks Repos by opening separate browser tabs for each YAML file or Python code module that you wish to modify.

For the latter approach, we recommend opening at least 3 browser tabs to facilitate easier development:

  • One tab for modifying configurations in pipeline.yaml and / or profiles/{profile}.yaml
  • One tab for modifying step function(s) defined in steps/{step}.py
  • One tab for modifying and running the driver notebook (notebooks/databricks)

Development Environment -- Local machine

Jupyter

  1. Launch the Jupyter Notebook environment via the jupyter notebook command.
  2. Open and run the notebooks/jupyter.ipynb notebook in the Jupyter environment.

Command-Line Interface (CLI)

First, enter the template root directory via cd mlp-batch-scoring-template. Then, try running the following MLflow CLI commands to get started. Note that the --step argument is optional; pipeline commands that are run without a --step act on the entire pipeline.

export MLFLOW_PIPELINES_PROFILE=local
mlflow pipelines --help
mlflow pipelines inspect --step step_name
mlflow pipelines run --step step_name
mlflow pipelines clean --step step_name

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.