aws / aws/sagemaker-python-sdk

Transformer.transform() doesn't return job name

未关闭
#2,858 2 条评论 0 个 reaction 已指派 1 人 已被 @mollyheamazon 认领 在 GitHub 查看
主要语言
Python
星标
2.3k
派生
1.3k
平均合并
1 天 22 小时
30 天内合并 PR
35

描述

**Describe the feature you'd like**

Get name of batch transform job after `sagemaker.transformer.Transformer.transform()` call, because the method does **not** return anything.

**How would this feature be used? Please describe.**

Job name will be used for bookkeeping purposes. Job name will be used to locate logs if debugging is required.

**Describe alternatives you've considered**

When `transform` method is executed, it sets the object field `latest_transform_job`. We are planning to use `transformer. latest_transform_job.name` to get the job name.

But the `Transformer` documentation doesn't mention anything about the field `latest_transform_job`. We are not sure if the field is safe for use or if the field will get removed/replaced in the future versions.

**Additional context**
* https://github.com/aws/sagemaker-python-sdk/blob/dev/src/sagemaker/transformer.py#L210
* https://sagemaker.readthedocs.io/en/stable/api/inference/transformer.html

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。