diff --git a/Ordinal/inspect_dataset.py b/Ordinal/inspect_dataset.py new file mode 100644 index 0000000..cd38eed --- /dev/null +++ b/Ordinal/inspect_dataset.py @@ -0,0 +1,16 @@ +import quapy as qp +from quapy.data import LabelledCollection +from quapy.data.reader import from_text +from quapy.functional import strprev + +category = 'Books' +datadir = './data' + +training_path = f'{datadir}/{category}/training_data.txt' + +data = LabelledCollection.load(training_path, loader_func=from_text) + +print(len(data)) +print(strprev(data.prevalence())) + +