MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / recurrence

Method recurrence

rnn_class/batch_gru.py:54–60  ·  view source on GitHub ↗
(self, xWxr_t, xWxz_t, xWxh_t, is_start, h_t1, h0)

Source from the content-addressed store, hash-verified

52 return h
53
54 def recurrence(self, xWxr_t, xWxz_t, xWxh_t, is_start, h_t1, h0):
55 h_t = T.switch(
56 T.eq(is_start, 1),
57 self.get_ht(xWxr_t, xWxz_t, xWxh_t, h0),
58 self.get_ht(xWxr_t, xWxz_t, xWxh_t, h_t1)
59 )
60 return h_t
61
62 def output(self, Xflat, startPoints):
63 # Xflat should be (NT, D)

Callers

nothing calls this directly

Calls 1

get_htMethod · 0.95

Tested by

no test coverage detected