I am using Orange CN2 rule induction algorithm for fraud detection where fraud rate is very low (below 0.1%). By default CN2 learns rules for both classes (Fraud and Non-Fraud). As I am interested in Fraud class rules only, learning of Non-Fraud rules is a waste of time especailly considering I need to run CN2 on many datasets. Is it possible for CN2 to learn only Fraud class rules and if yes, how to configure it in the script to do this? Thanks!
Can I use Orange CN2 classifier to learn rules for one class only?
1.4k views Asked by machine_learner At
1
The
CN2UnorderedLearner
class that you are using is based on the basic orange rulelearner, that, in fact, already learns rules for one class only. To learn one class only you need to specify thetarget_class
and call the parent class. Something like that: