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

Improve documentation on bring your own entity/relation initializers #1263

Open
mvd-lab opened this issue Apr 28, 2023 · 4 comments
Open

Improve documentation on bring your own entity/relation initializers #1263

mvd-lab opened this issue Apr 28, 2023 · 4 comments
Labels
documentation Improvements or additions to documentation

Comments

@mvd-lab
Copy link

mvd-lab commented Apr 28, 2023

Thank you for a very useful platform for building KGE models. I am working my own KG data set and I would like to initialize entity and relation embeddings with my own initial values for ConvKB and a few other models. I don't see any sample code for it. I see that the initializer functions can be set from one of several internally implemented (such uniform_ etc) but I don't see how I can make them use vectors pre-calculated. I appreciate your help.

@cthoyt
Copy link
Member

cthoyt commented Apr 29, 2023

Please have a look at https://pykeen.readthedocs.io/en/stable/reference/nn/init.html. We need to improve the high level documentation on this page and make sure its better linked from the tutorial

@mberr
Copy link
Member

mberr commented Apr 29, 2023

@mvd-lab
Copy link
Author

mvd-lab commented Apr 29, 2023

Yes! That worked. Thank you!

@cthoyt cthoyt changed the title How to use one's own entity/relation initializers Improve documentation on bring your own entity/relation initializers Apr 29, 2023
@cthoyt cthoyt added the documentation Improvements or additions to documentation label Apr 29, 2023
@shekarpour
Copy link

Hi
I have my own dataset containing three types of triples:

  1. triples as relation between entities e.g., 234 Located_IN 1254
  2. triples as properties of entities, e.g., 2356 First_Name Sarah
  3. triples as label/type of nodes such as 2356 type Person or 234 type location

Triplefactory treats everything as entity for example all the properties and type values. How can I guide it to differentiate between entity ID and property values?

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants