We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Pipeline interface is not supported in the sklearn wrapper added in #932 .
The text was updated successfully, but these errors were encountered:
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
Sorry, something went wrong.
CC @AadityaJ
Resolved in #1462, #1473, #1437 and another PRs from @chinmayapancholi13.
No branches or pull requests
Pipeline interface is not supported in the sklearn wrapper added in #932 .
The text was updated successfully, but these errors were encountered: