UCIRegression#
- class torch_uncertainty.datasets.regression.UCIRegression(root, transform=None, target_transform=None, dataset_name='energy', download=False, seed=42, shuffle=True)[source]#
The UCI regression datasets.
- Parameters:
root (
Path|str) – Root directory of the datasets.transform (
Callable|None) – A function/transform that takes in a numpy array and returns a transformed version. Defaults toNone.target_transform (
Callable|None) – A function/transform that takes in the target and transforms it. Defaults toNone.dataset_name (
str) – The name of the dataset. One ofboston-housing,concrete,energy,kin8nm,naval-propulsion-plant,power-plant,protein,wine-quality-red, andyacht. Defaults toenergy.download (
bool) – IfTrue, downloads the dataset from the internet and puts it in root directory. If dataset is already downloaded, it is not downloaded again. Defaults toFalse.seed (
int) – The random seed for shuffling the dataset. Defaults to42.shuffle (
bool) – IfTrue, shuffles the dataset. Defaults toTrue.
Note
You may want to avoid using the boston-housing dataset because of ethical concerns. The licenses of the datasets may differ from TorchUncertainty’s license. Check before use.