A package for training and evaluating knowledge graph embeddings
Project description
PyKEEN (Python KnowlEdge EmbeddiNgs) is a package for training and evaluating knowledge graph embeddings.
The system has a modular architecture, and can be configured by the user through the command line interface.
Installation
pykeen can be installed with the following command:
pip install pykeen
Alternatively, it can be installed from the source for development with:
$ git clone https://github.com/SmartDataAnalytics/PyKEEN.git pykeen
$ cd pykeen
$ pip install -e .
Usage
Code examples can be found in the notebooks directory.
CLI Usage
To start the PyKEEN CLI, run the following command:
pykeen
then the command line interface will assist you to configure your experiments.
To start PyKEEN with an existing configuration file, run:
pykeen -c /path/to/config.json
then the command line interface won’t be called, instead the pipeline will be started immediately.
Starting the Prediction Pipeline
To make prediction based on a trained model, run:
pykeen-predict -m /path/to/model/directory -d /path/to/data/directory
Summarize the Results of All Experiments
To summarize the results of all experiments, run:
pykeen-summarize -d /path/to/experiments/directory -o /path/to/output/file.csv
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.