Datasets
pykeen.datasets Package
Built-in datasets for PyKEEN.
New datasets (inheriting from Dataset) can be registered with PyKEEN using the
pykeen.datasets group in Python entrypoints in your own setup.py, setup.cfg, pyproject.toml, or other
package configuration. They are loaded automatically with importlib.metadata.entry_points() via
class_resolver.
Functions
|
Get a dataset, cached based on the given kwargs. |
|
Return if the dataset is registered in PyKEEN. |
Classes
|
The Clinical Knowledge Graph (CKG) dataset from [santos2020]. |
|
The CSKG dataset. |
|
The DB100K dataset from [ding2018]. |
|
The DRKG dataset. |
|
The UMLS dataset. |
|
The triples-only version of WD50K. |
|
The WN18 dataset. |
|
The WN18-RR dataset. |
|
The YAGO3-10 dataset is a subset of YAGO3 that only contains entities with at least 10 relations. |
|
The Aristo-v4 dataset from [chen2021]. |
|
The BioKG dataset from [walsh2020]. |
|
The CN3l dataset family. |
|
The CoDEx large dataset. |
|
The CoDEx medium dataset. |
|
The CoDEx small dataset. |
|
The ConceptNet dataset from [speer2017]. |
|
The Countries dataset. |
|
The DBpedia50 dataset. |
|
The base dataset class. |
|
The FB15k dataset. |
|
The FB15k-237 dataset. |
|
The Global Biotic Interactions (GloBI) dataset. |
|
The Hetionet dataset from [himmelstein2017]. |
|
The Kinships dataset. |
|
The Nations dataset. |
|
The OGB BioKG dataset. |
|
The OGB WikiKG2 dataset. |
|
The OpenBioLink dataset. |
|
The low-quality variant of the OpenBioLink dataset. |
|
The OpenEA dataset family. |
|
The PharMeBINet dataset from [koenigs2022]. |
|
The PharmKGFull dataset from [zheng2020]. |
|
The PharmKG8k dataset from [zheng2020]. |
|
The Precision Medicine Knowledge Graph (PrimeKG) dataset from [chandak2022]. |
|
The WK3l-15k dataset family. |
|
The WK3l-120k dataset family. |
|
The Wikidata5M dataset from [wang2019]. |
Variables
A resolver for datasets |
Class Inheritance Diagram
pykeen.datasets.base Module
Utility classes for constructing datasets.
Functions
|
Calculate the similarity between two datasets. |
Classes
|
Loads a dataset that's a single file inside an archive. |
Keyword arguments for a compressed single file dataset. |
|
|
The base dataset class. |
|
A dataset whose training, testing, and optional validation factories are pre-loaded. |
|
A dataset whose training, testing, and optional validation factories are lazily loaded. |
Keyword arguments for a lazy dataset. |
|
|
An abstract base class for packed remote datasets. |
Keyword arguments for a packed remote dataset. |
|
|
A remote dataset packed with a ZIP archive. |
|
Contains a lazy reference to a training, testing, and validation dataset. |
Keyword arguments for a path dataset. |
|
|
This class is for when you've got a single TSV of edges and want them to get auto-split. |
Keyword arguments for a single file tabbed dataset. |
|
|
A lazy dataset for arbitrary sources. |
|
A dataset that splits. |
Keyword arguments for a splitting lazy dataset. |
|
|
This class is for when you've got a single TSV of edges and want them to get auto-split. |
Keyword arguments for a tabbed dataset. |
|
|
A remote dataset packed with a TAR archive. |
|
Loads a dataset that's a single file inside a tar.gz archive. |
Keyword arguments for an unpacked remote dataset. |
|
|
A dataset with all three of train, test, and validation sets as URLs. |
|
Loads a dataset that's a single file inside a zip archive. |
Class Inheritance Diagram
pykeen.datasets.source Module
A generic source wrapper.
Classes
|
A source for a file inside an archive. |
|
A source that needs to be ensured before opening. |
|
An archived source that is remote on Google. |
|
A mixin source for remote sources that must be downloaded before opening. |
|
An archived source that is remote. |
|
A simple source that is remote. |
|
A mixin source for remote sources that must be downloaded before opening. |
|
A source that is directly opened. |
|
A configuration for a data resource. |
Class Inheritance Diagram
pykeen.datasets.analysis Module
Dataset analysis utilities.
Functions
|
Create a dataframe with entity counts. |
|
Create a dataframe of entity/relation co-occurrence. |
|
Determine the relation cardinality types. |
|
Create a dataframe with relation counts. |
|
Calculate the functionality and inverse functionality score per relation. |
|
Categorize relations based on patterns from RotatE [sun2019]. |
Inductive Datasets
pykeen.datasets.inductive Package
Inductive models in PyKEEN.
Classes
A disjoint inductive dataset specified by paths. |
|
A disjoint inductive dataset specified by paths. |
|
|
An eager inductive datasets. |
|
An inductive link prediction dataset for the ILPC 2022 Challenge. |
|
An inductive link prediction dataset for the ILPC 2022 Challenge. |
Contains transductive train and inductive inference/validation/test datasets. |
|
|
The inductive FB15k-237 dataset in 4 versions. |
|
The inductive NELL dataset in 4 versions. |
|
The inductive WN18RR dataset in 4 versions. |
An inductive dataset that has lazy loading. |
|
A dataset with all four of train, inductive_inference, inductive test, and inductive validation sets as URLs. |
Variables
Entity Alignment
pykeen.datasets.ea.base Module
Base classes for entity alignment datasets.
Classes
|
Base class for entity alignment datasets. |
Keyword arguments for an entity alignment dataset. |
pykeen.datasets.ea.combination Module
Combination strategies for entity alignment datasets.
Classes
This combinator merges all matching entity pairs into a single ID. |
|
This combinator keeps both graphs as disconnected components. |
|
This combinator keeps all entities, but introduces a novel alignment relation. |
|
A base class for combination of a graph pair into a single graph. |
|
|
The result of processing a pair of triples factories. |
Add extra triples by swapping aligned entities. |