mixed_data_loader#
This module provides the dataloader.
- class MixedDataLoader(config: DataConfig)#
Bases:
objectLoads and preprocesses the data.
- X_test#
the input of the test data
- y_test#
the labels for the test data
- train_validation_sets#
list of validations sets, one for each ratio of synthethic to observed data
Inits the DataLoader.
- Parameters:
config – the data configuration.
- property X_test: ndarray[Any, dtype[float64]]#
The input of the test dataset.
- Returns:
The input of the test dataset.
- load_data() Tuple[list[pandas.core.frame.DataFrame], list[pandas.core.frame.DataFrame]]#
Loads the data.
- Returns:
A list of dataframes.
- prepare_data() None#
This function preprocesses the data.
- property train_sets: dict[float, list[numpy.ndarray[Any, numpy.dtype[numpy.float64]]]]#
Lists of train sets.
One set for each ratio.
- Returns:
A dict containing the train sets.
- property y_test: ndarray[Any, dtype[float64]]#
The output of the test dataset.
- Returns:
The output of the test dataset.