Skip to content

Commit

Permalink
import fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexMoreo committed Jul 23, 2024
1 parent 3f20aa0 commit 73d5382
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions quapy/data/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def warn(*args, **kwargs):
import pandas as pd
from ucimlrepo import fetch_ucirepo
from quapy.data.base import Dataset, LabelledCollection
from quapy.data.preprocessing import text2tfidf, reduce_columns
from quapy.data.preprocessing import text2tfidf, reduce_columns, standardize
from quapy.data.reader import *
from quapy.util import download_file_if_not_exists, download_file, get_quapy_home, pickled_resource
from sklearn.preprocessing import StandardScaler
Expand Down Expand Up @@ -260,7 +260,7 @@ def fetch_UCIBinaryDataset(dataset_name, data_home=None, test_split=0.3, standar
data = fetch_UCIBinaryLabelledCollection(dataset_name, data_home, verbose)
dataset = Dataset(*data.split_stratified(1 - test_split, random_state=0), name=dataset_name)
if standardize:
dataset = qp.data.preprocessing.standardize(dataset)
dataset = standardize(dataset)
return dataset


Expand Down Expand Up @@ -643,7 +643,7 @@ def fetch_UCIMulticlassDataset(
data = Dataset(*data.split_stratified(train_prop, random_state=0))

if standardize:
data = qp.data.preprocessing.standardize(data)
data = standardize(data)

return data

Expand Down

0 comments on commit 73d5382

Please sign in to comment.