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

Bug: atpe Exception: assert np.all(sigma > 0) fail in adaptive_normal_parzen in tpe.py #870

Closed
DWDuq opened this issue Nov 9, 2022 · 1 comment
Labels

Comments

@DWDuq
Copy link

DWDuq commented Nov 9, 2022

My fmin call generates the following exception on line 456 in adaptive_normal_parzen: AssertionError: (nan, 0.32894072757057796, 9.210340371976184). I've traced this error back a few levels to -inf values in the memo variable of rec_eval() in base.py. Looking at my trials variable shows no invalid values for ['result']['loss'] or ['result']['loss_variance'] and so I suspect they are being generated from hyperopt code.

I do use generate_trials_to_calculate() to set an initial set of default parameters to evaluate and I'm not sure I did it correctly because doing so required me to specify values for parameters that are inactive due to choice parameter values. Also, if that were the problem I would expect the issue to show up sooner than on the 57th set of parameters.

I'm using hyperopt 0.2.7.

@DWDuq DWDuq changed the title atpe Exception: assert np.all(sigma > 0) fail in adaptive_normal_parzen in tpe.py Bug: atpe Exception: assert np.all(sigma > 0) fail in adaptive_normal_parzen in tpe.py Nov 10, 2022
@github-actions
Copy link

This issue has been marked as stale because it has been open 120 days with no activity. Remove the stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Jun 23, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant