This project is archived. Its data is read-only.

Learner1D's bound check algo in self.ask doesn't take self.data or self.pending_points

This code should not raise an AssertionError.

We can add it to the tests.

learner = Learner1D(lambda x: None, (-1, 1))
learner.tell(0, 0)
points, _ = learner.ask(3)
assert 0 not in points
Edited Sep 10, 2018 by Bas Nijholt
Assignee Loading
Time tracking Loading