-
Notifications
You must be signed in to change notification settings - Fork 287
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
Too many indices For Array #92
Comments
check the file above in link and please help me solve this problem |
having the same problem actually, can't figure out why. |
I solved this problem already long ago. Actually the shape of y_labels (which is polarity_train in my PDF I provided) is not in the required shape. Either it should (1400,1) or just list of 1400 class labels. As it's in array, because I used polarity_train.shape, so it should be in two dimensional. Just reshape your class labels to (1400,1) or use list of class labels. Hope it will solve too many indices problem in this case |
I also meet with this problems. I can't solve it no matter how I change the shape of data I used. Please tell me how to solve it if you truly solved. |
I am facing IndexError but i don't know why as my train and test set are in perfect shape as required by cross_val_score but still im getting this error. Any suggestions ?
K-NN for Amazon Fud Review.html.pdf
The text was updated successfully, but these errors were encountered: