fabianp / mord

Ordinal regression algorithms
Other
264 stars 70 forks source link

LAD method predicts not existing classes in training data #22

Open AlexandreMoulti opened 5 years ago

AlexandreMoulti commented 5 years ago

Hi,

I tried to used LAD method and it predicts not existing classes. I discovered this issue while trying to plot the confusion matrix. Indeed I have encoded classes between 5 and 14. But LAD method predicts sometimes a class 4 which should not exist.

Have I done a mistake ? Should I reclassify this 4 class into a 5 class (less qualitative)?

Regards

fabianp commented 5 years ago

this package assumes that your classes are between 0 and k-1, where k is the total number of classes