Skip to content

dimension mismatch #24

Open
Open
@ShafiqaIqbal

Description

@ShafiqaIqbal

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)))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ShafiqaIqbal

        Issue actions

          dimension mismatch · Issue #24 · susanli2016/Machine-Learning-with-Python