From 73d53820c2e9ec584bcb09380b11fd93d9f2ba2f Mon Sep 17 00:00:00 2001 From: Alejandro Moreo Date: Tue, 23 Jul 2024 16:07:24 +0200 Subject: [PATCH] import fix --- quapy/data/datasets.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/quapy/data/datasets.py b/quapy/data/datasets.py index 2fe08c4..bb10858 100644 --- a/quapy/data/datasets.py +++ b/quapy/data/datasets.py @@ -9,7 +9,7 @@ from os.path import join 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 @@ -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 @@ -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