Skip to content

Documentation: acquisition functions in some example notebooks are not provided with random state properly #559

Open
@lhy7889678

Description

@lhy7889678

Describe the bug
Acquisition functions used in some example notebooks are not provided with random state properly, so these notebooks cannot yield reproducible results. As far as I'm aware of, "Advanced Tour", "Exploration vs. Exploitation" and "Visualization of a 1D-Optimization" are affected.

To Reproduce
Get the abovementioned notebooks and run them several times.

Expected behavior
Each run of the same notebook should yield identical results.

Screenshots
N/A

Environment (please complete the following information):

  • OS: Arch Linux
  • python Version 3.13.2
  • numpy Version 2.2.3
  • scipy Version 1.15.2
  • bayesian-optimization Version 2.0.3

Additional context
Adding random_state=any_number_you_like when instantiating the acquisition function should suffice.

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