Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop verbosity of search #70

Closed
23pointsNorth opened this issue May 22, 2023 · 3 comments
Closed

Stop verbosity of search #70

23pointsNorth opened this issue May 22, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@23pointsNorth
Copy link
Contributor

When running an optimization, the tqdm progress bar is started regardless of the way the optimization is started.

Is there a way to decrease the verbosity?

@23pointsNorth 23pointsNorth added the bug Something isn't working label May 22, 2023
@SimonBlanke
Copy link
Owner

Hello @23pointsNorth,

I was able to reproduce this by running the following code:

import numpy as np
from hyperactive import Hyperactive


def objective_function(para):
    x, y = para["x"], para["y"]

    return -(x * x + y * y)


search_space = {
    "x": list(np.arange(-10, 10, 0.01)),
    "y": list(np.arange(-10, 10, 0.01)),
}


hyper = Hyperactive(verbosity=["print_results"])
hyper.add_search(objective_function, search_space, n_iter=100)
hyper.run()

Thank you for bringing this bug to my attention :-)

I will look into this. (it's probably because of the progress-bar rework/redesign)

@SimonBlanke
Copy link
Owner

I fixed this in 9afa1fe, did some basic manual testing and released the fix in v4.4.2.
This version should be live in a few minutes.

You can close this issue if the fix was successful for your code.

until next time ;-)

@23pointsNorth
Copy link
Contributor Author

The current state is nearly there! However, setting

hyper = Hyperactive(verbosity=False)
# or
hyper = Hyperactive(verbosity=[])

still results in an empty line being printed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants