Dataset.from_dataset_folder

classmethod Dataset.from_dataset_folder(dataset_dir: str) Dataset[source]

Loads a Dataset object from a folder containing the dataset object. The folder should contain the dataset object file, which is named as {cls.DATASET_OBJECT_FILENAME}.[json|pkl].

Parameters:

dataset_dir (str) – Full path to the folder containing the dataset object.

Returns:

Dataset – The loaded Dataset object.