SimplE
SimplE Embedding for Link Prediction in Knowledge Graphs
Install / Use
/learn @Mehran-k/SimplEREADME
NEW
A much faster version (in PyTorch) is available here: https://github.com/baharefatemi/SimplE
Summary
This software can be used to reproduce the results in our "SimplE Embedding for Link Prediction in Knowledge Graphs" paper. It can be also used to learn SimplE models for other datasets. The software can be also used as a framework to implement new tensor factorization models (implementations for TransE and ComplEx are included as two examples).
Dependencies
Pythonversion 2.7Numpyversion 1.13.1Tensorflowversion 1.1.0
Usage
To run a model M on a dataset D, do the following steps:
cdto the directory wheremain.pyis- Run
python main.py -m M -d D
Examples (commands start after $):
$ python main.py -m SimplE_ignr -d wn18
$ python main.py -m SimplE_avg -d fb15k
$ python main.py -m ComplEx -d wn18
Running a model M on a dataset D will save the embeddings in a folder with the following address:
$ <Current Directory>/M_weights/D/
As an example, running the SimplE_ignr model on wn18 will save the embeddings in the following folder:
$ <Current Directory>/SimplE_ignr_weights/wn18/
Learned Embeddings for SimplE
The best embeddings learned for SimplE_ignr and SimplE_avg on wn18 and fb15k can be downloaded from this link and this link respectively.
To use these embeddings, place them in the same folder as main.py, load the embeddings and use them.
Publication
Refer to the following publication for details of the models and experiments.
-
Seyed Mehran Kazemi and David Poole
SimplE Embedding for Link Prediction in Knowledge Graphs
Representing and learning relations and properties under uncertainty
Cite SimplE
If you use this package for published work, please cite one (or both) of the following:
@inproceedigs{kazemi2018simple,
title={SimplE Embedding for Link Prediction in Knowledge Graphs},
author={Kazemi, Seyed Mehran and Poole, David},
booktitle={Advances in Neural Information Processing Systems},
year={2018}
}
@phdthesis{Kazemi_2018,
series={Electronic Theses and Dissertations (ETDs) 2008+},
title={Representing and learning relations and properties under uncertainty},
url={https://open.library.ubc.ca/collections/ubctheses/24/items/1.0375812},
DOI={http://dx.doi.org/10.14288/1.0375812},
school={University of British Columbia},
author={Kazemi, Seyed Mehran},
year={2018},
collection={Electronic Theses and Dissertations (ETDs) 2008+}
}
Contact
Seyed Mehran Kazemi
Computer Science Department
The University of British Columbia
201-2366 Main Mall, Vancouver, BC, Canada (V6T 1Z4)
http://www.cs.ubc.ca/~smkazemi/
License
Licensed under the GNU General Public License Version 3.0. https://www.gnu.org/licenses/gpl-3.0.en.html
Copyright (C) 2018 Seyed Mehran Kazemi
Related Skills
YC-Killer
2.7kA library of enterprise-grade AI agents designed to democratize artificial intelligence and provide free, open-source alternatives to overvalued Y Combinator startups. If you are excited about democratizing AI access & AI agents, please star ⭐️ this repository and use the link in the readme to join our open source AI research team.
best-practices-researcher
The most comprehensive Claude Code skills registry | Web Search: https://skills-registry-web.vercel.app
groundhog
399Groundhog's primary purpose is to teach people how Cursor and all these other coding agents work under the hood. If you understand how these coding assistants work from first principles, then you can drive these tools harder (or perhaps make your own!).
workshop-rules
Materials used to teach the summer camp <Data Science for Kids>
