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

Method recurrence

rnn_class/batch_units.py:100–106  ·  view source on GitHub ↗
(self, xWxr_t, xWxz_t, xWxh_t, is_start, h_t1, h0)

Source from the content-addressed store, hash-verified

98 return h
99
100 def recurrence(self, xWxr_t, xWxz_t, xWxh_t, is_start, h_t1, h0):
101 h_t = T.switch(
102 T.eq(is_start, 1),
103 self.get_ht(xWxr_t, xWxz_t, xWxh_t, h0),
104 self.get_ht(xWxr_t, xWxz_t, xWxh_t, h_t1)
105 )
106 return h_t
107
108 def output(self, Xflat, startPoints):
109 # Xflat should be (NT, D)

Callers

nothing calls this directly

Calls 1

get_htMethod · 0.95

Tested by

no test coverage detected