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

fix to data downloader #171

Merged
merged 7 commits into from
Nov 29, 2021
Merged

fix to data downloader #171

merged 7 commits into from
Nov 29, 2021

Conversation

n-hutton
Copy link
Contributor

@n-hutton n-hutton commented Nov 23, 2021

$ gsutil ls gs://colearn-public/prod_line_failures_strong/0
gs://colearn-public/prod_line_failures_strong/0/
gs://colearn-public/prod_line_failures_strong/0/test_x.npy
...

vs

$ gsutil ls gs://colearn-public/mnist/0
gs://colearn-public/mnist/0/hash
gs://colearn-public/mnist/0/images.pickle
gs://colearn-public/mnist/0/labels.pickle

In the first example there is a folder (?) gs://colearn-public/prod_line_failures_strong/0/

nhutton added 2 commits November 23, 2021 00:31
@@ -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 '/':
Copy link
Contributor Author

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
Copy link
Contributor Author

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

Copy link
Contributor

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
Copy link
Contributor

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.

@evsmithx evsmithx merged commit 6846a74 into master Nov 29, 2021
@evsmithx evsmithx deleted the feature/bugfix branch November 29, 2021 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants