get_dataset
- get_dataset(*, dataset=None, dataset_kwargs=None, training=None, testing=None, validation=None)[source]
Get a dataset, cached based on the given kwargs.
- Parameters:
dataset (
Union[None,str,Path,Dataset,Type[Dataset]]) – The name of a dataset, an instance of a dataset, or the class for a dataset.dataset_kwargs (
Optional[Mapping[str,Any]]) – The keyword arguments, only to be used when a class for a dataset is used for thedatasetkeyword argument.training (
Union[None,str,Path,CoreTriplesFactory]) – A triples factory for training triples or a path to a training triples file ifdataset=Nonetesting (
Union[None,str,Path,CoreTriplesFactory]) – A triples factory for testing triples or a path to a testing triples file ifdataset=Nonevalidation (
Union[None,str,Path,CoreTriplesFactory]) – A triples factory for validation triples or a path to a validation triples file ifdataset=None
- Return type:
- Returns:
An instantiated dataset
- Raises:
ValueError – for incorrect usage of the input of the function
TypeError – If a type is given for
datasetbut it’s not a subclass ofpykeen.datasets.Dataset