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

Function gru1

nlp_class3/simple_rnn_test.py:54–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52
53
54def gru1():
55 input_ = Input(shape=(T, D))
56 rnn = GRU(M, return_state=True)
57 x = rnn(input_)
58
59 model = Model(inputs=input_, outputs=x)
60 o, h = model.predict(X)
61 print("o:", o)
62 print("h:", h)
63
64
65def gru2():

Callers 1

simple_rnn_test.pyFile · 0.85

Calls 3

predictMethod · 0.95
GRUClass · 0.50
ModelClass · 0.50

Tested by

no test coverage detected