Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What exactly is timestep in an LSTM Model?

I am a newbie to LSTM and RNN as a whole, I've been racking my brain to understand what exactly is a timestep. I would really appreciate an intuitive explanation to this

like image 504
Steven Wang Avatar asked Jan 17 '19 12:01

Steven Wang


People also ask

What is Timestep in LSTM?

This is one timestep input, output and the equations for a time unrolled representation. The LSTM has an input x(t) which can be the output of a CNN or the input sequence directly. h(t-1) and c(t-1) are the inputs from the previous timestep LSTM. o(t) is the output of the LSTM for this timestep.

What is Timestep?

Noun. timestep (plural timesteps) A time interval.

What are the 4 gates in LSTM?

It is an unit structure of LSTM, including 4 gates: input modulation gate, input gate, forget gate and output gate. We describe recurrent neural networks (RNNs), which have attracted great attention on sequential tasks, such as handwriting recognition, speech recognition and image to text.

What is the form of the output from the network at each Timestep RNN?

The most basic form of RNN cell is a recurrent neuron. It simply sends its output back to itself. At each time step t, it receives the input vector x(t) and its own scalar output from the previous time step, y(t−1).


1 Answers

Let's start with a great image from Chris Olah's blog (a highly recommended read btw):

enter image description here

In a recurrent neural network you have multiple repetitions of the same cell. The way inference goes is - you take some input (x0), pass it through the cell to get some output1(depicted with black arrow to the right on the picture), then pass output1 as input(possibly adding some more input components - x1 on the image) to the same cell, producing new output output2, pass that again as input to the same cell(again with possibly additional input component x2), producing output3 and so on.

A time step is a single occurrence of the cell - e.g. on the first time step you produce output1, h0, on the second time step you produce output2 and so on.

like image 148
Ivaylo Strandjev Avatar answered Sep 21 '22 12:09

Ivaylo Strandjev