MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / lstm1

Function lstm1

nlp_class3/simple_rnn_test.py:29–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28
29def lstm1():
30 input_ = Input(shape=(T, D))
31 rnn = LSTM(M, return_state=True)
32 x = rnn(input_)
33
34 model = Model(inputs=input_, outputs=x)
35 o, h, c = model.predict(X)
36 print("o:", o)
37 print("h:", h)
38 print("c:", c)
39
40
41def lstm2():

Callers 1

simple_rnn_test.pyFile · 0.85

Calls 3

predictMethod · 0.95
LSTMClass · 0.50
ModelClass · 0.50

Tested by

no test coverage detected