How to Visualize a custom metrics for a ProcessingStep on Sagemaker Pipeline UI

0

When selecting a step from a running Sagemaker pipeline, the right-side panel has an "Output" tab. We know that if the step is created from an Estimator, we can display all metrics from specifying metric_definitions parameter. However there is no equivalent parameter for Processor or other types of steps. How can we display metrics for a Sagemaker ProcessingStep then? Enter image description here

質問済み 1年前283ビュー
1回答
0

Hi there,

Thanks for reaching out and for the question.

Unlike the Estimator subclass which takes 'metric_definitions ' as a parameter, the ProcessingStep does not take on this parameter. An alternative is to make use of the the property_files parameter within the ProcessongStep (see link [1.]) to store information from the output of a processing step which can later be processed using the 'JsonGet' (see link [2.]). At best this will allow you to persist the metrics you'd like to capture and you can fetch the json file from the s3 output location, however this will not be published to the UI like your training jobs. Link [3.] provides an example of how this propertyfile can be defined and passed in the ProcessingStep.

[1.] https://sagemaker.readthedocs.io/en/stable/workflows/pipelines/sagemaker.workflow.pipelines.html#sagemaker.workflow.steps.ProcessingStep [2.] https://docs.aws.amazon.com/sagemaker/latest/dg/build-and-manage-propertyfile.html [3.] https://github.com/aws/amazon-sagemaker-examples/blob/main/sagemaker-pipelines/tabular/customizing_build_train_deploy_project/modelbuild/pipelines/customer_churn/pipeline.py#L183

AWS
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ