Question: LSTM states 2 0 1 point ( graded ) Now, we run the same model again with the same parameters and same initial conditions as

LSTM states 2
01 point (graded)
Now, we run the same model again with the same parameters and same initial conditions as in the previous
question. The only difference is that our input sequence in now: 1,1,0,1,1.
Calculate the values ht at each time-step and enter them below as an array h0,h1,h2,h3,h4.
(Please round ht to the closest integer in every time-step. If ht=+-0.5, then round it to 0.
For ease of calculation, assume that sigmoid (x)~~1 and tanh(x)~~1 for x1, and sigmoid (x)~~0
and tanh(x)~~-1 for x-1.)LSTM
Bookmark this page
Homework due Jul 17,202417:29 IST Completed
The diagram below shows a single LSTM unit that consists of Input, Output, and Forget gates.
The behavior of such a unit as a recurrent neural network is specified by a set of update equations. These
equations define how the gates, "memory cell" ct and the "visible state" ht are updated in response to input
xt and previous states ct-1,ht-1. For the LSTM unit,
f1=sigmoid(Wf,hht-1+Wf,cxt+bt)
it=sigmoid(Wi4ht-1+Wi,xxt+bi)
ot=sigmoid(W0,bht-1+W0,xt+b0)
ct=fto.ct-1+ito.tanh(Wc,hht-1+Wc,xt+bc)
ht=ato.tanh(at)
where symbol C stands for element-wise multiplication. The adjustable parameters in this unit are matrices
Wf1h,Wf1x,Wi,h,Wi1x,W0,h,Wo,x,Wc,h,Wc,, as well as the offset parameter vectors bf,bi,ba, and
bc. By changing these parameters, we change how the unit evolves as a function of inputs xt.
To keep things simple, in this problem we assume that xt,cf, and ht are all scalars. Concretely, suppose that
the parameters are given by
W1,k=0,Wfxt=0,bf=-100,Ws=-100
Wts=0,W4,t=100,bi=100,W'x=50
Was=0,Wa,=100,ba=0,bc=0
We run this unit with initial conditions h-1=0 and c-1=0, and in response to the following input sequence:
0,0,1,1,1,0(For example, x0=0,x1=0,x2=1, and so on).
 LSTM states 2 01 point (graded) Now, we run the same

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!