data_loading ¶
Module for dataset loading utilities.
Functions:
-
load_dataset_from_path
–Load dataset from various formats.
load_dataset_from_path ¶
load_dataset_from_path(data_path: str) -> DatasetDict
Load dataset from various formats.
Parameters:
-
data_path
(str
) –Path to the dataset (CSV, parquet, or HuggingFace dataset directory)
Returns:
-
DatasetDict
–A DatasetDict containing the loaded dataset
Source code in src/stimulus/data/interface/data_loading.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|