1
0
Fork 0
QuaPy/distribution_matching/tmp/show_datasets_stats.py

21 lines
425 B
Python

import pickle
import os
import quapy as qp
from quapy.model_selection import GridSearchQ
from quapy.protocol import UPP
toprint = []
for dataset in qp.datasets.UCI_MULTICLASS_DATASETS:
data = qp.datasets.fetch_UCIMulticlassDataset(dataset)
# model selection
train, test = data.train_test
toprint.append(f'{dataset}\t{len(train)}\t{len(test)}\t{data.n_classes}')
print()
for pr in toprint:
print(pr)