io
check_input_paths(fn_dataset, fn_transformed, fn_metatransformer, dir_experiment)
Sets up the input and output paths for the model files.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fn_dataset |
str
|
The base name of the dataset. |
required |
fn_transformed |
str
|
The name of the transformed data file. |
required |
fn_metatransformer |
str
|
The name of the metatransformer file. |
required |
dir_experiment |
Path
|
The path to the experiment directory. |
required |
Returns:
Type | Description |
---|---|
tuple[str, str]
|
The paths to the data, metadata and metatransformer files. |
Source code in src/nhssynth/modules/model/io.py
load_required_data(args, dir_experiment)
Loads the data from args
or from disk when the dataloader has not be run previously.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
args |
Namespace
|
The arguments passed to the module, in this case potentially carrying the outputs of the dataloader module. |
required |
dir_experiment |
Path
|
The path to the experiment directory. |
required |
Returns:
Type | Description |
---|---|
tuple[str, DataFrame, dict[str, int], MetaTransformer]
|
The data, metadata and metatransformer. |