PathDataset
- class PathDataset(training_path: str | Path, testing_path: str | Path, validation_path: None | str | Path, eager: bool = False, create_inverse_triples: bool = False, load_triples_kwargs: Mapping[str, Any] | None = None)[source]
Bases:
LazyDataset
Contains a lazy reference to a training, testing, and validation dataset.
Initialize the dataset.
- Parameters:
training_path (str | pathlib.Path) – Path to the training triples file or training triples file.
testing_path (str | pathlib.Path) – Path to the testing triples file or testing triples file.
validation_path (None | 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()
.