1
0
Fork 0

fisrt commit, lets put here some code for ordinal quantification

This commit is contained in:
Alejandro Moreo Fernandez 2022-01-27 12:41:32 +01:00
parent cfdf2e35bd
commit 5e1d59687f
1 changed files with 16 additions and 0 deletions

View File

@ -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()))