Skip to content

Commit

Permalink
Merge pull request #39 from lorenzovolpi/ucimulti
Browse files Browse the repository at this point in the history
Fix UCI multiclass features
  • Loading branch information
AlexMoreo authored Jul 12, 2024
2 parents 5da9fa0 + b543857 commit 2140aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quapy/data/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit 2140aed

Please sign in to comment.