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

[bugfix] Fix one-shot exp utils #317

Merged
merged 11 commits into from
Aug 20, 2022
Merged

Conversation

rayrayraykk
Copy link
Collaborator

As the title says.

@rayrayraykk rayrayraykk added bug Something isn't working FedHPO FedHPO related labels Aug 12, 2022
@rayrayraykk rayrayraykk requested a review from joneswong August 12, 2022 04:22
@rayrayraykk rayrayraykk changed the title [Bugfix] Fix path error when building surrogate model [Bugfix] Fix path error when building surrogate model & add Exp2 utils Aug 17, 2022
@rayrayraykk rayrayraykk changed the title [Bugfix] Fix path error when building surrogate model & add Exp2 utils [Feature] One-shot exp utils Aug 18, 2022
@rayrayraykk rayrayraykk changed the title [Feature] One-shot exp utils [bugfix] Fix one-shot exp utils Aug 18, 2022
@@ -27,8 +27,8 @@ def get_next_iteration(self, iteration, iteration_kwargs={}):
# number of configurations in that bracket
n0 = int(np.floor((self.max_SH_iter) / (s + 1)) * self.eta**s)
ns = [max(int(n0 * (self.eta**(-i))), 1) for i in range(s + 1)]
if os.path.exists(self.working_folder):
self.clear_cache()
# if os.path.exists(self.working_folder):
Copy link
Collaborator

Choose a reason for hiding this comment

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

so how to avoid restoring from the ckpts of previous SHA's attempts?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed, but I wonder as we remove ckpts but the Z yaml file will also be updated by the next SHA's attempts. How can we avoid this? Maybe we need a discussion.

Copy link
Collaborator

@joneswong joneswong left a comment

Choose a reason for hiding this comment

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

LGTM

@joneswong joneswong merged commit 4a43191 into alibaba:master Aug 20, 2022
Schichael pushed a commit to Schichael/FederatedScope_thesis that referenced this pull request Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working FedHPO FedHPO related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants