MLflow Tracking homepage
name: Get Runs From MLflow Tracking remote server
on: [issue_comment]
jobs:
get-runs:
if: (github.event.issue.pull_request != null) && contains(github.event.comment.body, '/get-runs')
runs-on: ubuntu-latest
steps:
- name: Get Runs Using tags
uses: alejio/mlflow-tracking-action@master
with:
MLFLOW_TRACKING_URI: ${{ secrets.MLFLOW_TRACKING_URI }}
EXPERIMENT_ID: "0"
BASELINE_RUN_QUERY: "tags.live='1'"
CANDIDATE_RUN_QUERY: "production_ready='1'"
MLFLOW_TRACKING_URI
: The tracking URI of your MLflow remote server, including username and password. Example "http://ec2-1-2-345-678.eu-west-2.compute.amazonaws.com".EXPERIMENT_ID
: The MLflow experiment_id against which relevant runs were executed.BASELINE_RUN_QUERY
: Baseline run query string for using inmlflow.search_runs
filter_string
param.CANDIDATE_RUN_QUERY
: Candidate run query string for using inmlflow.search_runs
filter_string
param.
MLFLOW_TRACKING_USERNAME
: Username for MLflow server authentication.MLFLOW_TRACKING_PASSWORD
: Password for MLflow server authentication.DEBUG
: Setting this variable to any value will turn debug mode on.
You can reference the outputs of an action using expression syntax.
BOOL_COMPLETE
: True if both runs were fetched successfully.EXPERIMENT_ID
: Queried MLflow experiment_id.BASELINE_RUNID
: MLflow Run ID of baseline run.BASELINE_TRAIN_ACCURACY
: Training accuracy of baseline run.BASELINE_TEST_ACCURACY
: Training accuracy of baseline run.BASELINE_ARTIFACT_URI
: Artifact URI for baseline run.CANDIDATE_RUNID
: MLflow Run ID of candidate run.CANDIDATE_TRAIN_ACCURACY
: Training accuracy of candidate run.CANDIDATE_TEST_ACCURACY
: Training accuracy of candidate run.CANDIDATE_ARTIFACT_URI
: Artifact URI for candidate run.
This action fetches 2 model runs:
- Baseline run: The baseline run corresponds to the currently deployed live model that we are looking to replace with the candidate.
- Candidate run: The candidate run corresponds to a model that aims to replace the currently live one.
MLOps, Machine Learning, Data Science