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

object of type TrainingInput is not JSON serializable

Open
#181 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
299
Forks
84
PR merge metrics
No merged PRs in 30d

Description

```
workflow = InferencePipeline(
preprocessor=...,
estimator=...,
inputs={
"train":TrainingInput(s3_data="..."),
"test":TrainingInput(s3_data="...")
},
...
)
```

When you call `execute()` it will fail, saying `object of type TrainingInput is not JSON serializable`

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure with the InferencePipeline example in the issue and call execute(). Trace the serialization path for the inputs containing TrainingInput objects; done means the pipeline executes without the JSON serialization error and both train and test inputs are handled correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cloud, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.