Untitled
unknown
plain_text
2 years ago
195 B
5
Indexable
def calculate_all_error(m, b, points): total_error = 0 for point in datapoints: point_error = calculate_error(m, b, point) total_error += point_error return total_error
Editor is loading...
def calculate_all_error(m, b, points): total_error = 0 for point in datapoints: point_error = calculate_error(m, b, point) total_error += point_error return total_error