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

Problem with sklearn.ensemble.LogisticRegression() #86

Open
malmashhadani opened this issue Jul 30, 2020 · 1 comment
Open

Problem with sklearn.ensemble.LogisticRegression() #86

malmashhadani opened this issue Jul 30, 2020 · 1 comment

Comments

@malmashhadani
Copy link

When I run the
feat_selector = BorutaPy(LRmodel, n_estimators='auto', verbose=2)
then I run:
feat_selector.fit(training_data.drop(columns=['LeadID','Enrolled_flag','CreateDate','LeadPrice']), training_data.Enrolled_flag)

I get the error

depth = self.estimator.get_params()['max_depth']

KeyError: 'max_depth'
@JosAndr
Copy link

JosAndr commented Dec 18, 2020

Logistic regression don't have "max_depth" as parameter, im not sure but i htink thaht boruta is not intended for use LR as estimator, the original algorithm is based on random forest

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