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

Comparison with sklearn's StackingClassifier #659

Closed
rchaves33 opened this issue Jan 23, 2020 · 1 comment
Closed

Comparison with sklearn's StackingClassifier #659

rchaves33 opened this issue Jan 23, 2020 · 1 comment
Labels

Comments

@rchaves33
Copy link
Contributor

Apologies if this is not the place for such a question, but:

What are the differences between mlxtend's StackingCVClassifier and sklearn's new StackingClassifier (which has a cv option)?

@rasbt rasbt added the Question label Jan 23, 2020
@rasbt
Copy link
Owner

rasbt commented Jan 23, 2020

Good question. The StackingClassifier and StackingCVClassifier in mlxtend have been around for a long time (a few years) and I assume that the new scikit-learn StackingClassifier implements the same general approach but with a slightly different API. I haven't looked at scikit-learn's stacking classifier in detail though and can't tell you much more about it.

However, when I look at the documentation, it seem that it is using cross-validation internally (the recommended approach), so it is more similar to the StackingCVClassifier in mlxtend rather then the regular StackingClassifier in mlxtend.

I hope that helps!

@rasbt rasbt closed this as completed Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants