-
Notifications
You must be signed in to change notification settings - Fork 13
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
fix to data downloader #171
Conversation
colearn/utils/data.py
Outdated
@@ -89,8 +89,19 @@ def _download_data_from_gcloud(cloud_data_dir, local_data_dir): | |||
file_counter = 0 | |||
for blob in blobs: | |||
filename = blob.name | |||
|
|||
if filename[-1] is '/': |
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.
bug addressed here
if self.minimise_criterion: | ||
return new_score <= self.vote_score | ||
return new_score < self.vote_score |
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.
unrelated, but looks like it is a bug
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.
It was a deliberate decision, but it might not be the correct one! I put it that way because otherwise it more quickly gets stuck in the state where no updates are accepted. But I think this way it better.
if self.minimise_criterion: | ||
return new_score <= self.vote_score | ||
return new_score < self.vote_score |
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.
It was a deliberate decision, but it might not be the correct one! I put it that way because otherwise it more quickly gets stuck in the state where no updates are accepted. But I think this way it better.
vs
In the first example there is a folder (?)
gs://colearn-public/prod_line_failures_strong/0/