Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ cost
Function
cost
ann_class/backprop.py:99–101 ·
view source on GitHub ↗
(T, Y)
Source
from the content-addressed store, hash-verified
97
98
99
def
cost(T, Y):
100
tot = T * np.log(Y)
101
return
tot.sum()
102
103
104
def
main():
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected