Skip to content

Commit 135b21e

Browse files
committed
change to test_tell_many_at_point
1 parent 8394906 commit 135b21e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

adaptive/tests/test_average_learner1d.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ def almost_equal_dicts(a, b):
1414
assert_series_equal(pd.Series(sorted(a.items())), pd.Series(sorted(b.items())))
1515

1616

17-
def test_copy_from():
17+
def test_tell_many_at_point():
1818
f = generate_random_parametrization(noisy_peak)
1919
learner = AverageLearner1D(f, bounds=[-2, 2])
2020
control = AverageLearner1D(f, bounds=[-2, 2])
2121
learner._recompute_losses_factor = 1
2222
control._recompute_losses_factor = 1
2323
simple_run(learner, 100)
24-
control.copy_from(learner)
24+
for x, samples in learner._data_samples.items():
25+
control.tell_many_at_point(x, samples)
2526

2627
almost_equal_dicts(learner.data, control.data)
2728
almost_equal_dicts(learner.error, control.error)

0 commit comments

Comments
 (0)