{"id":13678428,"url":"https://github.com/Mehran-k/SimplE","last_synced_at":"2025-04-29T13:31:08.235Z","repository":{"id":201333171,"uuid":"121420783","full_name":"Mehran-k/SimplE","owner":"Mehran-k","description":"SimplE Embedding for Link Prediction in Knowledge Graphs","archived":false,"fork":false,"pushed_at":"2020-02-11T16:15:36.000Z","size":8824,"stargazers_count":143,"open_issues_count":1,"forks_count":34,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-11-11T20:35:20.863Z","etag":null,"topics":["knowledge-base","knowledge-base-completion","knowledge-graph","knowledge-graph-completion","knowledge-graph-embeddings","knowledgebase","link-prediction","relational-learning","starai","statistical-relational-learning","tensor-factorization","tensorflow"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mehran-k.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-02-13T18:38:19.000Z","updated_at":"2024-10-19T12:48:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"7db1496e-d380-46e2-8a2d-93ce5de272f9","html_url":"https://github.com/Mehran-k/SimplE","commit_stats":null,"previous_names":["mehran-k/simple"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mehran-k%2FSimplE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mehran-k%2FSimplE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mehran-k%2FSimplE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mehran-k%2FSimplE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mehran-k","download_url":"https://codeload.github.com/Mehran-k/SimplE/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251509471,"owners_count":21600640,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["knowledge-base","knowledge-base-completion","knowledge-graph","knowledge-graph-completion","knowledge-graph-embeddings","knowledgebase","link-prediction","relational-learning","starai","statistical-relational-learning","tensor-factorization","tensorflow"],"created_at":"2024-08-02T13:00:53.525Z","updated_at":"2025-04-29T13:31:06.246Z","avatar_url":"https://github.com/Mehran-k.png","language":"Python","readme":"NEW\n===\nA much faster version (in PyTorch) is available here: https://github.com/baharefatemi/SimplE\n\nSummary\n=======\n\nThis 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).\n\n## Dependencies\n\n* `Python` version 2.7\n* `Numpy` version 1.13.1\n* `Tensorflow` version 1.1.0\n\n## Usage\n\nTo run a model `M` on a dataset `D`, do the following steps:\n* `cd` to the directory where `main.py` is\n* Run `python main.py -m M -d D`\n\nExamples (commands start after $):\n\n    $ python main.py -m SimplE_ignr -d wn18\n    $ python main.py -m SimplE_avg -d fb15k\n    $ python main.py -m ComplEx -d wn18\n\nRunning a model `M` on a dataset `D` will save the embeddings in a folder with the following address:\n\n    $ \u003cCurrent Directory\u003e/M_weights/D/\n\nAs an example, running the `SimplE_ignr` model on `wn18` will save the embeddings in the following folder:\n\n    $ \u003cCurrent Directory\u003e/SimplE_ignr_weights/wn18/\n\n## Learned Embeddings for SimplE\n\nThe best embeddings learned for `SimplE_ignr` and `SimplE_avg` on `wn18` and `fb15k` can be downloaded from [this link](https://drive.google.com/file/d/1fSxdFbSIcS4w4mAHUhKewjmXCcbOGqM7/view?usp=sharing) and [this link](https://drive.google.com/file/d/1hpDS34BxNfbr6xGeut5q5nvx8fW98qCe/view?usp=sharing) respectively.\n\nTo use these embeddings, place them in the same folder as `main.py`, load the embeddings and use them.\n\n## Publication\n\nRefer to the following publication for details of the models and experiments.\n\n- [Seyed Mehran Kazemi](https://mehran-k.github.io/) and [David Poole](http://www.cs.ubc.ca/~poole)\n\n  [SimplE Embedding for Link Prediction in Knowledge Graphs](https://papers.nips.cc/paper/7682-simple-embedding-for-link-prediction-in-knowledge-graphs)\n  \n  [Representing and learning relations and properties under uncertainty](https://open.library.ubc.ca/collections/ubctheses/24/items/1.0375812)\n\n\n## Cite SimplE\n\nIf you use this package for published work, please cite one (or both) of the following:\n\n    @inproceedigs{kazemi2018simple,\n      title={SimplE Embedding for Link Prediction in Knowledge Graphs},\n      author={Kazemi, Seyed Mehran and Poole, David},\n      booktitle={Advances in Neural Information Processing Systems},\n      year={2018}\n    }\n    \n    @phdthesis{Kazemi_2018, \n      series={Electronic Theses and Dissertations (ETDs) 2008+}, \n      title={Representing and learning relations and properties under uncertainty}, \n      url={https://open.library.ubc.ca/collections/ubctheses/24/items/1.0375812}, \n      DOI={http://dx.doi.org/10.14288/1.0375812}, \n      school={University of British Columbia}, \n      author={Kazemi, Seyed Mehran}, \n      year={2018}, \n      collection={Electronic Theses and Dissertations (ETDs) 2008+}\n    }\n\nContact\n=======\n\nSeyed Mehran Kazemi\n\nComputer Science Department\n\nThe University of British Columbia\n\n201-2366 Main Mall, Vancouver, BC, Canada (V6T 1Z4)  \n\n\u003chttp://www.cs.ubc.ca/~smkazemi/\u003e  \n\n\u003csmkazemi@cs.ubc.ca\u003e\n\n\nLicense\n=======\n\nLicensed under the GNU General Public License Version 3.0.\n\u003chttps://www.gnu.org/licenses/gpl-3.0.en.html\u003e\n\n\nCopyright (C) 2018  Seyed Mehran Kazemi\n\n  \n\n\n\n\n\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMehran-k%2FSimplE","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMehran-k%2FSimplE","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMehran-k%2FSimplE/lists"}