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

Add drop_last option to data loader in training loop #217

Merged
merged 13 commits into from Dec 15, 2020

Conversation

mberr
Copy link
Member

@mberr mberr commented Dec 14, 2020

This PR supersedes #113.

It adds the drop_last option to TrainingLoop.train. When None, drop_last=True if and only if the model contains any BatchNorm layers. It can also be provided explicitly to override this default. Moreover, when batch_size=1 the training loop will raise an error if the model contains any batch norm layers.

@mberr
Copy link
Member Author

mberr commented Dec 14, 2020

@PyKEEN-bot test please

@cthoyt
Copy link
Member

cthoyt commented Dec 14, 2020

Looks good to me but better if @lvermue and @mali-git take a closer look

@cthoyt
Copy link
Member

cthoyt commented Dec 14, 2020

@PyKEEN-bot test

src/pykeen/models/base.py Outdated Show resolved Hide resolved
src/pykeen/utils.py Outdated Show resolved Hide resolved
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.

None yet

4 participants