Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ get_cost
Function
get_cost
ann_class/regression.py:97–98 ·
view source on GitHub ↗
(Y, Yhat)
Source
from the content-addressed store, hash-verified
95
96
# so we can plot the costs later
97
def
get_cost(Y, Yhat):
98
return
((Y - Yhat)**2).mean()
99
100
101
Callers
1
regression.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected