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

Issue in _get_best_configs of SuccessiveHalving #1019

Closed
sudoRicheek opened this issue May 28, 2023 · 1 comment
Closed

Issue in _get_best_configs of SuccessiveHalving #1019

sudoRicheek opened this issue May 28, 2023 · 1 comment
Assignees

Comments

@sudoRicheek
Copy link

all_keys = [from_keys for _ in configs]

Here all_keys is defined to be of the same length as configs. But here:

configs.remove(incumbent)

Changes are made to the configs. And here:

selected_configs = sort_by_crowding_distance(rh, configs, all_keys)[:n_configs]

configs and all_keys are passed to the sort_by_crowding_distance() function, which are required to be of the same length. Am I missing something?

I replaced

selected_configs = sort_by_crowding_distance(rh, configs, all_keys)[:n_configs]

with

all_keys = [from_keys for _ in selected_configs]
selected_configs = sort_by_crowding_distance(rh, selected_configs, all_keys)[:n_configs] 

and it works fine

@helegraf
Copy link
Contributor

helegraf commented Jun 1, 2023

You are correct, thanks for pointing this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants