MCPcopy 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
20def squared_error(point, mean):
21 err = point - mean
22 return err**2
23
24
25def compute_variance(data):

Callers 1

compute_varianceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected