Question: ( 2 ) Problem 4 Bookmark this page Final due Sep 9 , 2 0 2 4 0 7 : 5 9 E n T
Problem
Bookmark this page
Final due Sep:
Recurrent neural networks iriviv vai ve useu as ciassimamui iumeis iui mile seiles data. Here we have a
simple RNN as shown in the figure above, where
dots,
and
We assume all offsets are except for the final output layer and we decide the two activation functions to
be:
RELUmax
and
sign
Note that the RELU can be applied elementwise if is a vector.
Suppose we want to apply this model to classify sentences into different categories eg positivenegative
sentiment we need to encode each word in a sentence into a vector as the input to the model. One way to
do this is to represent the th word as a column vector of length where is the set of the entire
vocabulary. The th element of is if the word is the th word in the vocabulary and all other elements are
zero.
points possible graded results hidden
Now compute the final hidden state for each of the three senteces ABB,BAA in this
RNN
Enter for
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
