Skip to content

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

@basnijholt

Description

@basnijholt

(original issue on GitLab)

opened by Bas Nijholt (@basnijholt) at 2018-09-10T11:13:13.449Z

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions