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

demandé il y a un an287 vues
1 réponse
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
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions