-
Notifications
You must be signed in to change notification settings - Fork 170
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
Errors when porting LinearSVC model #18
Comments
Hello @FakeNameSE, no problem! I'm happy about each serious issue and hint. It seems that I have to add support for the new pipeline feature of scikit-learn 0.19. I will fix it. Happy coding, |
Hello @FakeNameSE, I pushed the fix b444da7 to pypi. Now you can reinstall the package with:
Again thanks for your attention and help. Happy coding, |
Unfortunately, I still seem to be getting the error.
|
How did you create the estimator and fit the model? Can you share your code? In addition can you please execute the following snippet on the estimator before you dump the model as a pickle file:
|
Hi, I seem to be having the same issue.
My code is available at https://github.com/Phyks/OFFClassification/blob/master/notebook.ipynb. In particular, classifier = Pipeline([
('vectorizer', CountVectorizer()),
('tfidf', TfidfTransformer()),
('clf', OneVsRestClassifier(LinearSVC()))
])
classifier.fit(X_train, Y_train_transformed) Thanks! |
Indeed, it fixed it (partially). I am now getting
which makes sense since it seems |
Thanks! Step by step ... the neverending story 😄 . Yes, the support of the Thank you all for your feedback and help, |
Awesome! I'm following the other issue for updates on this then. Thanks a lot for this lib! |
Sorry to bother you again, but when attempting to run:
python3 -m sklearn_porter -i model_notokenizer.pkl -l java
I get:I'm running python 3.5.2, numpy 1.13.1, and sklearn 0.19.0.
The text was updated successfully, but these errors were encountered: