Skip to content

Instantly share code, notes, and snippets.

@Taehun
Last active January 11, 2021 15:19
Show Gist options
  • Save Taehun/288c2d26222a63e4a76e2cd58ffb2b08 to your computer and use it in GitHub Desktop.
Save Taehun/288c2d26222a63e4a76e2cd58ffb2b08 to your computer and use it in GitHub Desktop.
AzureML 파이프라인 매트릭 가져오기
from azureml.core import Experiment, Workspace, Run
import pprint
import os
resource_group = os.environ["AUZURE_RESOURCE_GROUP"]
workspace_name = os.environ["AUZRE_WORKSPACE_NAME"]
subscription_id = os.environ["AZURE_SUBSCRIPTION_ID"]
ws = Workspace(
resource_group=resource_group,
workspace_name=workspace_name,
subscription_id=subscription_id,
)
experiment = Experiment(workspace=ws, name="azureml-model-evaluate")
run_id = "<PIPELINE RUN ID>"
fetched_run = Run(experiment, run_id)
metrics = list(fetched_run.get_metrics(recursive=True).values())[0]
pprint.pprint(metrics)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment