aws / aws/aws-step-functions-data-science-sdk-python

ModelDataUrl is incorrect when result_path is defined in TrainingStep

未关闭
#104 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
299
派生
84
PR 合并指标
30 天内没有已合并 PR

描述

The ModelDataUrl in the Step Functions' defenition is '“ModelDataUrl.$“: “$[‘ModelArtifacts’][‘S3ModelArtifacts’]”' even though the result_path is defined in the TrainingStep, and it causes error like this.

> “An error occurred while executing the state ‘Save Model’ (entered at the event id #8). The JSONPath ’$[‘ModelArtifacts’][‘S3ModelArtifacts’]' specified for the field ‘ModelDataUrl.$’ could not be found in the input ...

It should be '“ModelDataUrl.$“: “$[‘TrainingStepResults’][‘ModelArtifacts’][‘S3ModelArtifacts’]”'.

```
training_step = steps.TrainingStep(
‘Model Training’,
estimator=tf_estimator,
data={
‘training’: inputs
},
job_name=execution_input[‘TrainingJobName’],
result_path=‘$.TrainingStepResults’,
wait_for_completion=True
)

model_step = steps.ModelStep(
‘Save Model’,
model=training_step.get_expected_model(),
model_name=execution_input[‘ModelName’],
instance_type=‘ml.m5.xlarge’,
result_path=‘$.ModelStepResults’
)
```

贡献指南

打开贡献指南

调研方向

从构建 Step Functions 定义的 TrainingStep 和 ModelStep 定义开始,然后跟踪 result_path 如何应用于 ModelDataUrl。复现提供的 training_step 和 model_step 配置,并验证生成的路径嵌套在 TrainingStepResults 下,同时模型输出仍然可用。

由索引模型根据 Issue 内容生成。

评估

技术栈
aws, python
领域
cloud, machine-learning
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

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