forked from moreo/QuaPy
fisrt commit, lets put here some code for ordinal quantification
This commit is contained in:
parent
cfdf2e35bd
commit
5e1d59687f
|
@ -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()))
|
||||
|
||||
|
Loading…
Reference in New Issue