# LSTM Method Error - Time Series

**URL:** <https://discourse.julialang.org/t/lstm-method-error-time-series/73973>\
**Category:** Machine Learning\
**Tags:** question, flux, time-series, machine-learning\
**Created:** [January 3, 2022, 4:01pm UTC](https://discourse.julialang.org/t/lstm-method-error-time-series/73973 "2022-01-03T16:01:36Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Hugo](https://avatars.discourse-cdn.com/v4/letter/h/b38774/32.png) [@Hugo](https://discourse.julialang.org/u/Hugo)\
**Post date:** [December 7, 2023, 1:37am UTC](https://discourse.julialang.org/t/lstm-method-error-time-series/73973/4 "2023-12-07T01:37:28Z")

</div>

Hi, @sherlock_holmes

I read your code and I found the blend and order of the layers in your model intriguing. I assume these were not randomly chosen; there is a reason for Dropout() and Dense() be placed where it is.

Would you mind explaining your reasoning a bit? I’m also using an LSTM for time-series prediction, but I’m so green to all of this. If you have a resource you used and proved helpful, I’d appreciate if you could share it.

---

_[View the full topic](https://discourse.julialang.org/t/lstm-method-error-time-series/73973)._
