Skip to main content

Knowledge Graph embedding in Python and PyTorch.

Project description

logo torchkge https://img.shields.io/pypi/v/torchkge.svg https://github.com/torchkge-team/torchkge/actions/workflows/ci_checks.yml/badge.svg Documentation Status Updates https://img.shields.io/pypi/pyversions/torchkge.svg

TorchKGE: Knowledge Graph embedding in Python and Pytorch.

TorchKGE is a Python module for knowledge graph (KG) embedding relying solely on Pytorch. This package provides researchers and engineers with a clean and efficient API to design and test new models. It features a KG data structure, simple model interfaces and modules for negative sampling and model evaluation. Its main strength is a highly efficient evaluation module for the link prediction task, a central application of KG embedding. It has been observed to be up to five times faster than AmpliGraph and twenty-four times faster than OpenKE. Various KG embedding models are also already implemented. Special attention has been paid to code efficiency and simplicity, documentation and API consistency. It is distributed using PyPI under BSD license.

Citations

If you find this code useful in your research, please consider citing our paper (presented at IWKG-KDD 2020):

@inproceedings{arm2020torchkge,
    title={TorchKGE: Knowledge Graph Embedding in Python and PyTorch},
    author={Armand Boschin},
    year={2020},
    month={Aug},
    booktitle={International Workshop on Knowledge Graph: Mining Knowledge Graph for Deep Insights},
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

torchkge-0.17.1.tar.gz (38.9 kB view details)

Uploaded Source

Built Distribution

torchkge-0.17.1-py2.py3-none-any.whl (49.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file torchkge-0.17.1.tar.gz.

File metadata

  • Download URL: torchkge-0.17.1.tar.gz
  • Upload date:
  • Size: 38.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for torchkge-0.17.1.tar.gz
Algorithm Hash digest
SHA256 808720d96a2d1eae68b3271c95c98a98c3767f01b0bedd1efe47b43d3af7477c
MD5 42c06ff2611fccad96687b73f8cfc813
BLAKE2b-256 faa099804055d611a9e944978217ee25f5f4970fe48722c043c10aeda1220273

See more details on using hashes here.

File details

Details for the file torchkge-0.17.1-py2.py3-none-any.whl.

File metadata

  • Download URL: torchkge-0.17.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 49.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for torchkge-0.17.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 00a8fbb8176879633d697100b9be09ec9a438800118a7ad64751c6400b2da084
MD5 285b17b92912a9454402e083ce1ed086
BLAKE2b-256 150fa6685dec1af15a9fbe59c03c7e0d1e9d6a5c71bacffc0943c22d88cc5e06

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page