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

Bugs in StructureLoader #4

Open
veghen opened this issue Mar 23, 2021 · 0 comments
Open

Bugs in StructureLoader #4

veghen opened this issue Mar 23, 2021 · 0 comments

Comments

@veghen
Copy link

veghen commented Mar 23, 2021

There might be a minor bug in data.StructureLoader. Some samples will not be included in the loader, so the dataset size is not exactly the same as that reported in the paper.

for ix in sorted_ix:
    size = self.lengths[ix]
    if size * (len(batch) + 1) <= self.batch_size:
        batch.append(ix)
        batch_max = size
    else:
        clusters.append(batch)
        batch, batch_max = [], 0
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

No branches or pull requests

1 participant