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

Step Functions Data Science SDK for building machine learning (ML) workflows and pipelines on AWS
Apache License 2.0
285 stars 87 forks source link

object of type TrainingInput is not JSON serializable #181

Open neilmcguigan opened 2 years ago

neilmcguigan commented 2 years ago
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

wealthystudent commented 2 years ago

I also received this error