bnsreenu / python_for_microscopists

https://www.youtube.com/channel/UC34rW-HtPJulxr5wp2Xa04w?sub_confirmation=1
MIT License
3.78k stars 2.35k forks source link

validation loss looks like overfitting #55

Open Maryamzk opened 1 year ago

Maryamzk commented 1 year ago

Hi, I have applied this model to other data sets. I want to forecast the energy consumption using a history of energy consumption and 23 weather features over 4 years.

The validation loss is increasing, which I assume it is a sign of overfitting. and the training loss does not go under 0.2. I have tried decreasing the learning rate, adding decay rate, and reducing the lstm layers, but I still have overfitting.

How can I modify my model to prevent overfitting (the increasing trend in the validation loss? image

Thanks for any advice.