firefly-cpp / NiaARM

A minimalistic framework for Numerical Association Rule Mining
MIT License
15 stars 6 forks source link

Exceptions and warnings when handling these UCI datasets #91

Closed mlaky88 closed 1 year ago

mlaky88 commented 1 year ago

german.csv car.csv buying.csv

firefly-cpp commented 1 year ago

Thanks, @mlaky88!

@zStupan, any ideas?

zStupan commented 1 year ago

For buying.csv no rules are found that's why it gives a division by 0 error when trying to compute the mean fitness when printing. I'll fix that and make it so it prints an empty array if the list is empty or something

For the other two, the csv file is formatted wrong. It's missing the label for the class attribute in the header. e.g: buying,maintanance,doors,persons,lug_boot,safety should be buying,maintanance,doors,persons,lug_boot,safety,class and same for german.csv

firefly-cpp commented 1 year ago

Thanks, @zStupan. Can we release the new version? Are you planning to add anything else?

zStupan commented 1 year ago

@firefly-cpp We can publish a new release.