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

Method bottom_diff

lstm_code/nicodjimenez/test2.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
20class Primes:
21 def __init__(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected