File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ def test_quadratic():
4848
4949 # Answer should be close to (1,2)
5050 expected_point = np .array ((1 , 2 ))
51- start_distance = np .sqrt (np .sum ((expected_point - start_values )** 2 ))
52- result_distance = np .sqrt (np .sum ((expected_point - result )** 2 ))
51+ start_distance = np .sqrt (np .sum ((expected_point - start_values ) ** 2 ))
52+ result_distance = np .sqrt (np .sum ((expected_point - result ) ** 2 ))
5353 # It should always get _closer_, even if it doesn't get particularly close
5454 assert result_distance < start_distance
5555 assert np .isclose (result_distance , 0 , atol = 1e-1 )
@@ -130,7 +130,6 @@ def test_pick_excludes():
130130 def monitor (generation , best , pop ):
131131 global best_point
132132 global pop_points
133- global axis
134133
135134 # Change the color of the previous points
136135 # to grey and light red
You can’t perform that action at this time.
0 commit comments