1

What is the difference between RNNs and LSTMs and when do we use either of these models?

ウィエム
  • 405
  • 4
  • 12
subho
  • 491
  • 1
  • 4
  • 13

1 Answers1

1

Not exactly. RNN, Recurrent Neural Networks works well for some tasks but because some issues arise from using RNN such as The Exploding Gradient or The Vanishing Gradient Problem, it became standard to use LSTM, which is a type of RNN that solves these problems.

Exploding/vanishing gradients happen when you are back-propagating through a long network and because you keep multiplying the gradient as you go, it can either grow as much and overflow, or it can become very very small that it will have no effect anymore.

LSTM solves this by using a mechanism called Gated Recurrent Unit. Because it solves the problems usually encountered by the standard RNN, LSTM is more popularly used.

It is is actually important for you to understand these topics so I would take a look at this blog, it explains them perfectly with graphs and examples. https://skymind.ai/wiki/lstm

ウィエム
  • 405
  • 4
  • 12