mixed_data_loader#

This module provides the dataloader.

class MixedDataLoader(config: DataConfig)#

Bases: object

Loads 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.

property list_of_train_validation_sets: list[list[dict[str, list[numpy.ndarray[Any, numpy.dtype[numpy.float64]]]]]]#

Lists of train validation sets.

One set for each ratio of synthethic to observed data.

Returns:

A list of list of dicts containing train and validation sets.

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 y_test: ndarray[Any, dtype[float64]]#

The output of the test dataset.

Returns:

The output of the test dataset.