Thanks for a great library. When I try to run it on my dataset with 25 columns, I get the following error
ValueError Traceback (most recent call last)
in ()
1 rf = RuleFit()
----> 2 rf.fit(X, y)
/Users/arshakn/anaconda/lib/python2.7/site-packages/rulefit/rulefit.pyc in fit(self, X, y, feature_names)
266 ## concatenate original features and rules
267 X_rules = self.rule_ensemble.transform(X)
--> 268 X_concat = np.concatenate((X, X_rules), axis=1)
269
270 ## initialise Lasso
ValueError: all the input arrays must have same number of dimensions
When no rules are found, then the concatenation of the X and the rules fails. My best guess atm is, that this was the problem. It should be fixed now. Please tell me if it works now.
Thanks for a great library. When I try to run it on my dataset with 25 columns, I get the following error
ValueError Traceback (most recent call last)