Rulefit complexity wasn't counting linear terms when include_linear=True
Gosdt always inheriting from GreedyTreeClassifier can cause issues when you actually have gosdt installed, e.g. the print method will expect some attributes that specific to GreedyTreeClassifier and not created by OptimalTreeClassifier.fit. I switched it to the corels approach where we check if gosdt is supported before picking the parent class.
Rulefit complexity wasn't counting linear terms when
include_linear=True
Gosdt always inheriting from
GreedyTreeClassifier
can cause issues when you actually havegosdt
installed, e.g. the print method will expect some attributes that specific toGreedyTreeClassifier
and not created byOptimalTreeClassifier.fit
. I switched it to the corels approach where we check if gosdt is supported before picking the parent class.