From b543857c0839815539f6df81cecf83ed9e8eac46 Mon Sep 17 00:00:00 2001 From: Lorenzo Volpi Date: Fri, 12 Jul 2024 18:03:42 +0200 Subject: [PATCH] fix UCI multiclass features --- quapy/data/datasets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quapy/data/datasets.py b/quapy/data/datasets.py index 451651c..d12b4ac 100644 --- a/quapy/data/datasets.py +++ b/quapy/data/datasets.py @@ -751,7 +751,7 @@ def download(id, name): df = fetch_ucirepo(id=id) df.data.features = pd.get_dummies(df.data.features, drop_first=True) - X, y = df.data.features.to_numpy(), df.data.targets.to_numpy().squeeze() + X, y = df.data.features.to_numpy(dtype=np.float64), df.data.targets.to_numpy().squeeze() assert y.ndim == 1, 'more than one y'