Skip to content
This repository was archived by the owner on May 23, 2025. It is now read-only.
This repository was archived by the owner on May 23, 2025. It is now read-only.

Issue when deploying Improving Forecast Accuracy with Machine Learning example #203

Open
@Weixin97

Description

@Weixin97

I am having the below issue when trying to deploy the example given.

There was an error running the forecast for nyctaxi_weather_auto

Message: An error occurred (InvalidInputException) when calling the CreatePredictor operation: The attribute(s) [day_hour_name] present in the RELATED_TIME_SERIES schema should be of numeric type such as `integer` or `float`, or be added as a forecast dimension

Details: (caught InvalidInputException)

  File "/var/task/shared/helpers.py", line 66, in wrapper
    (status, output) = f(event, context)

  File "/var/task/create_predictor.py", line 40, in handler
    predictor.create()

  File "/var/task/shared/Predictor/predictor.py", line 228, in create
    self.cli.create_predictor(**self._create_params())

  File "/opt/python/botocore/client.py", line 386, in _api_call
    return self._make_api_call(operation_name, kwargs)

  File "/opt/python/botocore/client.py", line 705, in _make_api_call
    raise error_class(parsed_response, operation_name)

I think this is due to that the related dataset only accept additional columns with int / float type. Is there any hints on troubleshooting this on the py file in lambda function? Hope to get some help soon!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions