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

dimension mismatch #24

Open
ShafiqaIqbal opened this issue Aug 5, 2019 · 0 comments
Open

dimension mismatch #24

ShafiqaIqbal opened this issue Aug 5, 2019 · 0 comments

Comments

@ShafiqaIqbal
Copy link

ShafiqaIqbal commented Aug 5, 2019

I am trying to predict the class of a string (randomly) but the clf.predict always give dimensions mismatch error. here i am adding the very first line to check if it classifies correctly. but it displays mismatch error, i have done everything the same way mentioned in the notebook.

s = []
s.append((df['final'][0]))
print(clf.predict(count_vect.transform(s)))
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

1 participant