MCPcopy Create free account
hub / github.com/chinawithfrank/ChatBotCourse / bottom_diff

Method bottom_diff

lstm_code/nicodjimenez/test.py:15–18  ·  view source on GitHub ↗
(self, pred, label)

Source from the content-addressed store, hash-verified

13
14 @classmethod
15 def bottom_diff(self, pred, label):
16 diff = np.zeros_like(pred)
17 diff[0] = 2 * (pred[0] - label)
18 return diff
19
20def example_0():
21 # learns to repeat simple sequence from random inputs

Callers 1

y_list_isMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected