Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ddbourgin/numpy-ml
/ __call__
Method
__call__
numpy_ml/neural_nets/losses/losses.py:42–43 ·
view source on GitHub ↗
(self, y, y_pred)
Source
from the content-addressed store, hash-verified
40
super().__init__()
41
42
def
__call__(self, y, y_pred):
43
return
self.loss(y, y_pred)
44
45
def
__str__(self):
46
return
"SquaredError"
Callers
nothing calls this directly
Calls
1
loss
Method · 0.95
Tested by
no test coverage detected