UCIRegressionDataModule#
- class torch_uncertainty.datamodules.UCIRegressionDataModule(root, dataset_name, batch_size, eval_batch_size=None, val_split=0.0, num_workers=1, pin_memory=True, persistent_workers=True, input_shape=None, split_seed=42)[source]#
The UCI regression datasets.
- Parameters:
root (
str|Path) – Root directory of the datasets.dataset_name (
str) – The name of the dataset. One ofboston-housing,concrete,energy,kin8nm,naval-propulsion-plant,power-plant,protein,wine-quality-red, andyacht.batch_size (
int) – The batch size for training and testing.eval_batch_size (
int|None) – Number of samples per batch during evaluation (val and test). Set tobatch_sizeifNone. Defaults toNone.val_split (
float) – Share of validation samples. Defaults to0.num_workers (
int) – How many subprocesses to use for data loading. Defaults to1.pin_memory (
bool) – Whether to pin memory in the GPU. Defaults toTrue.persistent_workers (
bool) – Whether to use persistent workers. Defaults toTrue.input_shape (
tuple[int,...] |None) – The shape of the input data. Defaults toNone.split_seed (
int) – The seed to use for splitting the dataset. Defaults to42.