codes.utils.data_utils

codes.utils.data_utils#

Functions

check_and_load_data(dataset_name[, verbose, ...])

Check the specified dataset and load the data based on the mode (train or test).

create_dataset(name, data[, params, split, ...])

Creates a new dataset in the data directory.

create_hdf5_dataset(train_data, test_data, ...)

Create an HDF5 file for a dataset with train, test, and validation data, along with optional timesteps and parameters.

download_data(dataset_name[, path, verbose])

Download the specified dataset if it is not present, with a progress bar.

get_data_subset(data, timesteps, mode, metric)

Get the appropriate data subset based on the mode and metric.

normalize_data(train_data[, test_data, ...])

Normalize the data based on the training data statistics.

print_data_info(data_path)

Classes

DownloadProgressBar(*_, **__)

Exceptions

DatasetError

Error for missing data or dataset or if the data shape is incorrect.