Skip to content

Learner1D breaks if right bound is added before the left bound #45

@basnijholt

Description

@basnijholt

(original issue on GitLab)

opened by Bas Nijholt (@basnijholt) at 2018-09-10T09:29:23.396Z

It is surprisingly easy to completely break the Learner1D

import adaptive
adaptive.notebook_extension()

def f(x): return x

learner = adaptive.Learner1D(f, bounds=(-1, 1))
learner.tell(1, 0)  # first add a point at the right boundary

learner.ask(1) # This will forever return ([1.0], [inf])

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