Skip to content

timeseries_traffic_forecasting.py #1417

Open
@afcostauw

Description

@afcostauw

Someone can explain to me how to make inference using a trained model using the code in timeseries_traffic_forecasting.py?

Imagine that a have historical data from 45 timesteps for 33 roads, and that I want to predict the next 2 timesteps for each road, i. e., input_sequence_length = 3 and forecast_horizon=2.

I do not understand why the result of model.predict(historical_data) has shape (41,2,33).
I was expecting having as a result an array of size (2,33), i. e., an array with the predict values for the 2 wanted timesteps, for each road.

Anyone can help me?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions