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

ScikitClassifier looks unnecessary #8

Closed
kmike opened this issue Jul 17, 2016 · 1 comment
Closed

ScikitClassifier looks unnecessary #8

kmike opened this issue Jul 17, 2016 · 1 comment

Comments

@kmike
Copy link

kmike commented Jul 17, 2016

Hi,

FYI: one can use Pipeline from scikit-learn to do the same as ScikitClassifier. So instead of

from lime.lime_text import ScikitClassifier
c = ScikitClassifier(rf, vectorizer)

one can write

from sklearn.pipeline import make_pipeline
c = make_pipeline(vectorizer, rf)
@marcotcr
Copy link
Owner

Thanks a lot, I didn't know about this.
I removed ScikitClassifier from the code and examples.
=]

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