get_dataset
- get_dataset(*, dataset: str | Path | Dataset | type[Dataset] | None = None, dataset_kwargs: Mapping[str, Any] | None = None, training: str | Path | CoreTriplesFactory | None = None, testing: str | Path | CoreTriplesFactory | None = None, validation: str | Path | CoreTriplesFactory | None = None) Dataset[source]
Get a dataset, cached based on the given kwargs.
- Parameters:
dataset (str | Path | Dataset | type[Dataset] | None) – The name of a dataset, an instance of a dataset, or the class for a dataset.
dataset_kwargs (Mapping[str, Any] | None) – The keyword arguments, only to be used when a class for a dataset is used for the
datasetkeyword argument.training (str | Path | CoreTriplesFactory | None) – A triples factory for training triples or a path to a training triples file if
dataset=Nonetesting (str | Path | CoreTriplesFactory | None) – A triples factory for testing triples or a path to a testing triples file if
dataset=Nonevalidation (str | Path | CoreTriplesFactory | None) – A triples factory for validation triples or a path to a validation triples file if
dataset=None
- 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 ofDataset
- Return type: