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

🍇 🙏 Stop storing the training_instances as an instance variable #420

Merged
merged 5 commits into from
May 6, 2021

Conversation

cthoyt
Copy link
Member

@cthoyt cthoyt commented May 5, 2021

This PR will simplify #417 by removing yet another unnecessary instance variable from the TrainingLoop class. The training_instances do not actually need to be stored in state, since they only have to get passed around after calling TrainingLoop.train()

This PR might also allow us to remove the triples_factory itself from many of these inner calls. This probably not the case, since the triples factor is used for two things: getting the number of triples (which isn't stored in the LCWA instances) and getting the mapped triples for graph sampling (which again isn't stored in the LCWA instances)

@cthoyt
Copy link
Member Author

cthoyt commented May 5, 2021

@PyKEEN-bot test

@cthoyt cthoyt changed the title Stop storing the training_instances as an instance variable 🍇 🙏 Stop storing the training_instances as an instance variable May 5, 2021
@cthoyt cthoyt requested review from mberr and lvermue May 5, 2021 21:10
@cthoyt cthoyt marked this pull request as ready for review May 5, 2021 21:11
@cthoyt
Copy link
Member Author

cthoyt commented May 6, 2021

@PyKEEN-bot test

@cthoyt cthoyt merged commit 9bbb7c0 into master May 6, 2021
@cthoyt cthoyt deleted the trash-training-instances branch May 6, 2021 12:34
@cthoyt cthoyt added this to the PyKEEN v1.5.0 milestone May 19, 2021
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.

3 participants