TabularRegressionDataset#
- class torch_uncertainty.datasets.regression.TabularRegressionDataset(root, transform=None, target_transform=None, download=False, train=True, test_split=0.2, split_seed=42)[source]#
UCI regression dataset.
- Parameters:
root (
Path|str) – Root directory of the datasets.transform (
Callable|None) – Transform applied to each input sample. Defaults toNone.target_transform (
Callable|None) – Transform applied to each target. Defaults toNone.download (
bool) – IfTrue, downloads the dataset. Defaults toFalse.train (
bool) – IfTrue, returns the training split. Defaults toTrue.test_split (
float) – Fraction of the dataset held out as test set. Defaults to0.2.split_seed (
int) – Random seed for the train/test split. Defaults to42.
Note
The licenses of the datasets may differ from TorchUncertainty’s license. Check before use.