MCPcopy Create free account
hub / github.com/MingchaoZhu/DeepLearning / __call__

Method __call__

code/chapter6.py:205–206  ·  view source on GitHub ↗
(self, y_true, y_pred)

Source from the content-addressed store, hash-verified

203 super().__init__()
204
205 def __call__(self, y_true, y_pred):
206 return self.loss(y_true, y_pred)
207
208 def __str__(self):
209 return "SquaredError"

Callers

nothing calls this directly

Calls 1

lossMethod · 0.95

Tested by

no test coverage detected