Categories
Misc

Building Sequential LSTM

Building Sequential LSTM

Say I wanted to build an LSTM architecture like the below. My input is a matrix of size [n * 10] where n is the rows (each row represents an embedded vector) and 10 is the columns. My output should be a prediction of an embedded vector of size [1 *10], this data is available from a “future” date. Would the following code do what I am looking for?

model3.add(Embedding(10,10))

model3.add(LSTM(10,return_sequences=True,return_state=True,))

model3.add(Dense(1,activation=’sigmoid’))

Thanks in advance!

https://preview.redd.it/xeypkqt4rl791.png?width=1719&format=png&auto=webp&s=f52465d678216845dd2047f3dc27368889d2599d

submitted by /u/dsaldonid
[visit reddit] [comments]

Leave a Reply

Your email address will not be published. Required fields are marked *