Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

support trial config deduplication in SMAC tuner #1840

Merged
merged 4 commits into from
Dec 23, 2019

Conversation

QuanluZhang
Copy link
Contributor

when config_dedup is True, a configuration will not be generated more than once

@scarlett2018 scarlett2018 mentioned this pull request Dec 11, 2019
44 tasks
self.total_data[parameter_id] = challenger
return self.param_postprocess(challenger.get_dictionary())
assert self.dedup is True
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't need the assert here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i want it to have a quick fail

Copy link
Contributor

@xuehui1991 xuehui1991 Dec 12, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the self.dedup must be True? Seems it all depends on the parameter config_dedup

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if challengers is empty?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assert challengers not empty before the for loop will make it more straightforward

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/automl/SMAC3/blob/81eba541e67c09aa307f2ba23d583f94c60b6125/smac/optimizer/ei_optimization.py#L699 this is the implementation of challengers, I am not sure whether it is good to use len(challengers.challengers), seems very ugly.

Copy link
Contributor

@chicm-ms chicm-ms Dec 19, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, I agree that not to use challengers.chanllengers since it is intenal implementation. I am OK with current code, or add another boolean variable to record and check whether challengers is empty.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated, thanks.

@leckie-chn leckie-chn merged commit 2a81b08 into microsoft:master Dec 23, 2019
@leckie-chn leckie-chn mentioned this pull request Dec 25, 2019
19 tasks
@QuanluZhang QuanluZhang deleted the dev-smac-dedup branch February 20, 2020 13:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants