Closed MRYingLEE closed 4 years ago
Just in case someone needs it. I implemented a rolling sequence generator at https://github.com/MRYingLEE/DeepTime-Deep-Learning-Framework-for-Time-Series-Forecasting/blob/master/MultiModel/2_Solar_Generation_with_rolling_sequence.ipynb .
I tried to modify the example of https://github.com/octoenergy/timeserio/blob/master/docs/source/examples/SolarGenerationTimeSeries_Part2.ipynb to use multimodel.predict_generator. I understand multimodel.predict() cannot work directly for the sequence reason. After the prediction, I will chart the predicted and the real value, just like what has been done in the part 1.
I use the following code
To my surprise, test_hat has the shape of (1459, 1) while df_test has that of (8760, 8). I realized it was because of the generator.
I tried all kinds of generators in timeserio and I couldn't find one can be used in predict_generator() to generator prediction row by row.
Any suggestions?
Thank you in advance,
Ying