io
check_input_paths(fn_dataset, fn_typed, fn_synthetic_datasets, fn_sdv_metadata, 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_typed |
str
|
The name of the typed real dataset file. |
required |
fn_synthetic_datasets |
str
|
The filename of the collection of synethtic datasets. |
required |
fn_sdv_metadata |
str
|
The name of the SDV metadata 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/evaluation/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, DataFrame, dict[str, dict[str, Any]]]
|
The dataset name, the real data, the bundle of synthetic data from the modelling stage, and the SDV metadata. |
Source code in src/nhssynth/modules/evaluation/io.py
output_eval(evaluations, fn_dataset, fn_evaluations, dir_experiment)
Sets up the input and output paths for the model files.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
evaluations |
DataFrame
|
The evaluations to output. |
required |
fn_dataset |
Path
|
The base name of the dataset. |
required |
fn_evaluations |
str
|
The filename of the collection of evaluations. |
required |
dir_experiment |
Path
|
The path to the experiment output directory. |
required |
Returns:
Type | Description |
---|---|
None
|
The path to output the model. |