pcntoolkit.dataio.data_factory#
Functions#
|
Download and save fcon dataset to specified path, or load it from there |
|
Load the lifespan_big dataset, which is a large lifespan dataset with many sites. |
Module Contents#
- load_fcon1000(save_path: str | None = None)#
Download and save fcon dataset to specified path, or load it from there if it is already downloaded
- Parameters:
save_path (
str | None) – The path to save the dataset to, or load it from if it is already downloaded- Returns:
The loaded dataset as a NormData object
- Return type:
NormData
- load_lifespan_big(n_response_vars: int | None = None, n_largest_sites: int | None = None, n_subjects: int | None = None) pcntoolkit.dataio.norm_data.NormData#
Load the lifespan_big dataset, which is a large lifespan dataset with many sites.
- Parameters:
n_response_vars (
int | None) – If specified, only use the first n_response_vars response variables.n_largest_sites (
int | None) – If specified, only keep data from the n_largest_sites largest sites.n_subjects (
int | None) – If specified, randomly sample n_subjects subjects.
- Returns:
The loaded dataset as a NormData object.
- Return type:
NormData