DisjointInductivePathDataset
- class DisjointInductivePathDataset(transductive_training_path: str | Path, inductive_inference_path: str | Path, inductive_testing_path: str | Path, inductive_validation_path: str | Path, eager: bool = False, create_inverse_triples: bool = False, load_triples_kwargs: Mapping[str, Any] | None = None)[source]
Bases:
LazyInductiveDataset
A disjoint inductive dataset specified by paths.
Contains a lazy reference to a training, inductive inference, inductive testing, and inductive validation dataset. In this dataset, inductive inference is disjoint with the transductive train
Initialize the dataset.
- Parameters:
transductive_training_path (str | pathlib.Path) – Path to the training triples file or training triples file.
inductive_inference_path (str | pathlib.Path) – Path to the inductive inference triples file or training triples file.
inductive_testing_path (str | pathlib.Path) – Path to the testing triples file or testing triples file.
inductive_validation_path (str | str | pathlib.Path) – Path to the validation triples file or validation triples file.
eager (bool) – Should the data be loaded eagerly? Defaults to false.
create_inverse_triples (bool) – Should inverse triples be created? Defaults to false.
load_triples_kwargs (Mapping[str, Any] | None) – Arguments to pass through to
TriplesFactory.from_path()
and ultimately through topykeen.triples.utils.load_triples()
.