-
Notifications
You must be signed in to change notification settings - Fork 214
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
Conversation
@@ -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): |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
As the title says.