pykeen/pykeen
🤖 A Python library for learning and evaluating knowledge graph embeddings
What it solves
PyKEEN (Python KnowlEdge EmbeddiNgs) provides a standardized framework for training and evaluating knowledge graph embedding models. It simplifies the process of turning complex, multi-relational graph data into numerical representations that can be used for tasks like link prediction.
How it works
PyKEEN offers a high-level pipeline that allows users to select from dozens of built-in models and datasets. By using a consistent API, users can easily swap different models, training loops, or evaluation methods. It handles the heavy lifting of data preparation and model training, returning a structured result object containing the trained model, evaluation metrics, and the training history.
Who it’s for
It is designed for researchers and developers working with knowledge graphs who need a robust, extensible tool to experiment with various embedding models without writing boilerplate code for every new configuration.
Highlights
- Includes 37 built-in datasets and 5 inductive datasets for immediate use.
- Supports 40 different embedding models with a unified API.
- Highly extensible: users can easily integrate custom datasets or drop in new model components.
- Integrated with popular tools like Optuna for optimization and PyTorch Lightning for training.
- Provides built-in support for rank-based evaluation and multiple training strategies.
Related
- Project
sunlabuiuc/PyHealthPyHealth is a PyTorch-based toolkit that streamlines the development and benchmarking of clinical AI models by providing standardized data loaders, pre-defined tasks, and a unified interface for deep learning models.
- Project
a-r-j/grapheinGraphein is a Python library that converts protein, RNA, and molecular structures, as well as biological interaction networks, into graph representations ready for geometric deep learning and network analysis.
- Project
huggingface/transformersHugging Face Transformers is a library providing state-of-the-art pretrained models for inference and training across text, vision, audio, video, and multimodal tasks. It acts as a central model-definition framework compatible with many training frameworks, inference engines, and modeling libraries. Over 1 million model checkpoints are available on the Hugging Face Hub. It requires Python 3.11+ and PyTorch 2.6+, and offers a high-level Pipeline API for tasks like text generation, speech recognition, image classification, and visual QA. It's not a modular neural-net toolbox, and its training API is PyTorch-specific (use Accelerate for generic loops). The README also lists example models per modality and a citation for the EMNLP 2020 paper.
- Project
erdogant/bnlearnbnlearn is a Python package that simplifies causal discovery and Bayesian network modeling by providing ready-made pipelines for structure learning, parameter learning, inference, and synthetic data generation, making these advanced techniques accessible to non-experts.
- Project
pykale/pykaleA PyTorch-based library for multimodal and transfer learning that provides a standardized, pipeline-based API to create sustainable and reusable AI workflows.