Answers.Body: <p>An RNN has a recursive element to it, as its output is fed back as part of the next input; this provides a kind of memory.</p>
  <p>When analysing a time series, values tend to depend on previous values (unless the time series is random), so an RNN is bound to perform better, as it has more context for classification.</p>
  <p>An ANN basically just looks at values in isolation, and thus cannot make use of the history of the time series. So I would expect it to perform much worse in this case.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-04-02T13:02:49.100Z
Answers.LastActivityDate: 2022-04-02T13:02:49.100Z
Answers.UserDisplayName: Oliver Mason
Body: <p>So, I'm using the same dataset in both models but my RNN gets a 95% accuracy and my ANN gets 52%.</p>
  <p>It is a time series, binary classification problem, and I know that RNN is better than ANN for time series, but I was suspecting that there was some data leak, since 95% is way higher than I expected.</p>
  <p>Is it possible that I have a data leak only in my RNN? Or are RNN this much better than ANN for time series?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-04-02T10:25:27.110Z
Comments.Text: What do you mean by "data leak" in this case? Without having almost no info about your dataset, it's not possible to answer this unclear question.
Comments.UserDisplayName: nbro
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-04-03T23:55:46.387Z
Comments.Text: https://en.wikipedia.org/wiki/Leakage_(machine_learning)
  
  lol
Comments.UserDisplayName: Miguel Casagrande
Tags: <classification><recurrent-neural-networks><data-preprocessing><binary-classification>
Title: How can my RNN get way better results than my ANN
UserDisplayName: Miguel Casagrande
ThreadText: # How can my RNN get way better results than my ANN
  
  (Asked by: username_0 on 2022-04-01)
  
  So, I'm using the same dataset in both models but my RNN gets a 95% accuracy and my ANN gets 52%.
  
  It is a time series, binary classification problem, and I know that RNN is better than ANN for time series, but I was suspecting that there was some data leak, since 95% is way higher than I expected.
  
  Is it possible that I have a data leak only in my RNN? Or are RNN this much better than ANN for time series?
  
  **Tags:** classification, recurrent-neural-networks, data-preprocessing, binary-classification
  > **Comments:**
  > **username_1**: What do you mean by "data leak" in this case? Without having almost no info about your dataset, it's not possible to answer this unclear question.  
  > **username_0**: https://en.wikipedia.org/wiki/Leakage_(machine_learning)  lol  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2022-04-02. Score: 0 | Accepted answer
  
  An RNN has a recursive element to it, as its output is fed back as part of the next input; this provides a kind of memory.
  
  When analysing a time series, values tend to depend on previous values (unless the time series is random), so an RNN is bound to perform better, as it has more context for classification.
  
  An ANN basically just looks at values in isolation, and thus cannot make use of the history of the time series. So I would expect it to perform much worse in this case.
  
  
  ---
  
  