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 generalized metadata storage to TriplesFactory and improve repr #211

Merged
merged 9 commits into from Dec 11, 2020

Conversation

cthoyt
Copy link
Member

@cthoyt cthoyt commented Dec 10, 2020

Closes #142, Deprecates #144, Deprecates #145

Since #193, triples factories don't need paths. However, they're useful to have around, so this PR is a re-write of #145 such that they can be passed around in a metadata dictionary, along with any other information.

@cthoyt
Copy link
Member Author

cthoyt commented Dec 10, 2020

@PyKEEN-bot test

@cthoyt cthoyt requested a review from mberr December 11, 2020 00:31
@mberr
Copy link
Member

mberr commented Dec 11, 2020

@cthoyt What about directly extending it to store a dictionary of metadata in the triples factory? We could also update __repr__ / __str__ to show this metadata.

@cthoyt
Copy link
Member Author

cthoyt commented Dec 11, 2020

@mberr good point, this was the solution in the other one too

@cthoyt cthoyt changed the title Enable optional storage of paths in triples factories Add generalized metadata storage to TriplesFactory and improve repr Dec 11, 2020
@cthoyt
Copy link
Member Author

cthoyt commented Dec 11, 2020

@PyKEEN-bot test plz

@cthoyt cthoyt added the enhancement New feature or request label Dec 11, 2020
@cthoyt cthoyt merged commit c5423d8 into master Dec 11, 2020
@cthoyt cthoyt deleted the tf-maintain-path branch December 11, 2020 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Logging of TriplesFactory paths in pipeline() is misleading
3 participants