class PathDataset(training_path, testing_path, validation_path, eager=False, create_inverse_triples=False, load_triples_kwargs=None)[source]

Bases: LazyDataset

Contains a lazy reference to a training, testing, and validation dataset.

Initialize the dataset.

  • training_path (Union[str, Path]) – Path to the training triples file or training triples file.

  • testing_path (Union[str, Path]) – Path to the testing triples file or testing triples file.

  • validation_path (Union[None, str, 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 (Optional[Mapping[str, Any]]) – Arguments to pass through to TriplesFactory.from_path() and ultimately through to pykeen.triples.utils.load_triples().