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

Support sklearn pipeline interface. Continuing #932. #1123

Closed
tmylk opened this issue Jan 29, 2017 · 3 comments
Closed

Support sklearn pipeline interface. Continuing #932. #1123

tmylk opened this issue Jan 29, 2017 · 3 comments
Labels
bug Issue described a bug

Comments

@tmylk
Copy link
Contributor

tmylk commented Jan 29, 2017

Pipeline interface is not supported in the sklearn wrapper added in #932 .

@tmylk tmylk added the bug Issue described a bug label Jan 29, 2017
@tmylk tmylk changed the title Support sklearn pipeline interface. Continuing #932 Support sklearn pipeline interface. Continuing #932. Jan 29, 2017
@rodrigocesar
Copy link

I tried to create a simple pipeline using the sklearn wrapper and got a an error.

The code is:

from sklearn.pipeline import Pipeline text_lda = Pipeline([('vec', CountVectorizer(min_df=10, stop_words='english')), ('clf', SklearnWrapperLdaModel(id2word=id2word,num_topics=5,passes=20)), ]) text_lda = text_clf.fit(data.data)

The error i got was:


TypeError Traceback (most recent call last)
in ()
----> 1 text_lda = text_clf.fit(data.data)

C:\Users\posgr\Anaconda3\lib\site-packages\sklearn\pipeline.py in fit(self, X, y, **fit_params)
163 """
164 Xt, fit_params = self._pre_transform(X, y, **fit_params)
--> 165 self.steps[-1][-1].fit(Xt, y, **fit_params)
166 return self
167

TypeError: fit() takes 2 positional arguments but 3 were given

@tmylk
Copy link
Contributor Author

tmylk commented Jan 29, 2017

CC @AadityaJ

@menshikh-iv
Copy link
Contributor

Resolved in #1462, #1473, #1437 and another PRs from @chinmayapancholi13.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue described a bug
Projects
None yet
Development

No branches or pull requests

3 participants