keras-io icon indicating copy to clipboard operation
keras-io copied to clipboard

Improvement suggestion for "Timeseries forecasting for weather prediction"

Open To3No7 opened this issue 2 years ago • 3 comments
trafficstars

As a teacher in ML I find there are clear problem spots in timeseries_weather_forecasting.py

First, the Data Preprocessing is not sufficient, compare this code to the TensorFlow tutorial on Time series forecasting, where they take care of Wind velocity at -9999, and also feature engineers the wind direction as well as the time parameter. This preprocessing is important to get good results.

In the TensorFlow tutorial, they also split the data into training, validation, and test sets, while this Keras example only do a split into training and validation sets, which is not a very good practice.

I also think this example would benefit from a baseline (like just predicting the same as the last sample/temperature) and then comparing the LSTM model’s performance to this. In connection with this, one can also show how to extract the test input and target vectors from a datastream by looping over the batched data.

To3No7 avatar May 01 '23 18:05 To3No7

@PrabhanshuAttri can you please take a look at this issue? Thank you!

divyashreepathihalli avatar May 04 '23 17:05 divyashreepathihalli

@sachinprasadhs @divyashreepathihalli , can I work on this Issue?

Zekrom-7780 avatar Nov 09 '23 06:11 Zekrom-7780