其他参考:

         LSTM Networks应用于股票市场探究   *****

         LSTM模型在问答系统中的应用  ***

         最全 LSTM 模型在量化交易中的应用汇总(代码+论文) ***

         分享一下你所了解到的LSTM/RNN的应用Case? *****(含有各种具体应用场景)

In a traditional recurrent neural network, during the gradient back-propagation phase, the gradient signal can end up being multiplied a large number of times (as many as the number of timesteps) by the weight matrix associated with the connections between the neurons of the recurrent hidden layer. This means that, the magnitude of weights in the transition matrix can have a strong impact on the learning process.

If the weights in this matrix are small (or, more formally, if the leading eigenvalue of the weight matrix is smaller than 1.0), it can lead to a situation called vanishing gradients where the gradient signal gets so small that learning either becomes very slow or stops working altogether. It can also make more difficult the task of learning long-term dependencies in the data. Conversely, if the weights in this matrix are large (or, again, more formally, if the leading eigenvalue of the weight matrix is larger than 1.0), it can lead to a situation where the gradient signal is so large that it can cause learning to diverge. This is often referred to as exploding gradients.

These issues are the main motivation behind the LSTM model which introduces a new structure called a memory cell (see Figure 1 below). A memory cell is composed of four main elements: an input gate, a neuron with a self-recurrent connection (a connection to itself), a forget gate and an output gate. The self-recurrent connection has a weight of 1.0 and ensures that, barring any outside interference, the state of a memory cell can remain constant from one timestep to another. The gates serve to modulate the interactions between the memory cell itself and its environment. The input gate can allow incoming signal to alter the state of the memory cell or block it. On the other hand, the output gate can allow the state of the memory cell to have an effect on other neurons or prevent it. Finally, the forget gate can modulate the memory cell’s self-recurrent connection, allowing the cell to remember or forget its previous state, as needed.

Model LSTMFigure 1: Illustration of an LSTM memory cell.

 

The equations below describe how a layer of memory cells is updated at every timestep Model LSTM. In these equations:

  • Model LSTM is the input to the memory cell layer at time Model LSTM
  • Model LSTMModel LSTMModel LSTMModel LSTMModel LSTMModel LSTMModel LSTMModel LSTM and Model LSTM are weight matrices
  • Model LSTMModel LSTMModel LSTM and Model LSTM are bias vectors

First, we compute the values for Model LSTM, the input gate, and Model LSTM the candidate value for the states of the memory cells at time Model LSTM:

(1)Model LSTM

(2)Model LSTM

Second, we compute the value for Model LSTM, the activation of the memory cells’ forget gates at time Model LSTM:

(3)Model LSTM

Given the value of the input gate activation Model LSTM, the forget gate activation Model LSTM and the candidate state value Model LSTM, we can compute Model LSTM the memory cells’ new state at time Model LSTM:

(4)Model LSTM

With the new state of the memory cells, we can compute the value of their output gates and, subsequently, their outputs:

(5)Model LSTM

(6) Model LSTM

相关文章:

  • 2021-10-17
  • 2021-08-03
  • 2021-04-12
猜你喜欢
  • 2021-04-06
  • 2021-08-29
  • 2021-07-25
  • 2021-09-15
  • 2022-12-23
  • 2021-11-17
  • 2021-10-15
相关资源
相似解决方案