Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ squared_error
Function
squared_error
example_code/item_114/debugging/my_module.py:20–22 ·
view source on GitHub ↗
(point, mean)
Source
from the content-addressed store, hash-verified
18
19
20
def
squared_error(point, mean):
21
err = point - mean
22
return
err**2
23
24
25
def
compute_variance(data):
Callers
1
compute_variance
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected