Compare commits

..

No commits in common. "f08885dca3ddb7cdf927e42c116d7aa20a5c0f87" and "53b052edc766d369b50097c939f9a8b7c2443d7c" have entirely different histories.

2 changed files with 0 additions and 5 deletions

View File

@ -1,6 +1,3 @@
import numpy as np
def warn(*args, **kwargs):
pass
import warnings
@ -647,8 +644,6 @@ def fetch_UCIMulticlassLabelledCollection(dataset_name, data_home=None, verbose=
else:
data = fetch_ucirepo(id=identifier)
X, y = data['data']['features'].to_numpy(), data['data']['targets'].to_numpy().squeeze()
classes = np.sort(np.unique(y))
y = np.searchsorted(classes, y)
data = LabelledCollection(X, y)
os.makedirs(os.path.dirname(file), exist_ok=True)
with open(file, 'wb') as file: