Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

all the input arrays must have same number of dimensions #1

Closed
arshak opened this issue May 3, 2016 · 1 comment
Closed

all the input arrays must have same number of dimensions #1

arshak opened this issue May 3, 2016 · 1 comment

Comments

@arshak
Copy link

arshak commented May 3, 2016

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

@christophM
Copy link
Owner

christophM commented May 4, 2016

Thanks for the feedback.

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.

chriswbartley pushed a commit that referenced this issue Aug 23, 2018
…s-only

[FIX] predict() in rules-only mode
chriswbartley pushed a commit that referenced this issue Nov 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants