aws / aws/aws-step-functions-data-science-sdk-python
object of type TrainingInput is not JSON serializable
- 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
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