Skip to content

Verbose=2 doesn't work in terminal or bash #452

@Dmonzer

Description

@Dmonzer

Ex:

from bayes_opt import BayesianOptimization

black_box_function = lambda x, y: -x ** 2 - (y - 1) ** 2 + 1

pbounds = {'x': (2, 4), 'y': (-3, 3)}

optimizer = BayesianOptimization(
    f=black_box_function,
    pbounds=pbounds, 
verbose =2
)
optimizer.maximize()

Expected behavior
I expect to get a printout of the progress outputs during the optimization process in power shell or git bash similar to jupyter notebook.

Environment (please complete the following information):

  • OS: [Windows]

Additional context
When I run the same code in jupyter notebook, I get a log of optimization steps's output. However if I use powershell or git bash, I don't get any output.

Update
Turns out it was a connection with the server not the package. It works fine in powershell as well! No issues.

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