SpiceQA
Questions Tags Users Badges

KeyError: 'un-imagin' .. does anybody have any idea where i can find a solution for this error?

safaa fathii 0
Created Sep 22, 2022 Edited Sep 22, 2022
Viewed 18

I'm trying to do sentiment analysis on text data using Naive Bayes classifier. and i've already splitted data into X_train X_test y_train y_test using train test split from sklearn. the problem is that when i'm trying to do the prediction using X_train it works well but when i'm trying to do the prediction on test data for testing the performance of the model it gives that error.

sentiment-analysis naivebayes machine-learning nlp python
Share
0 Answers
Related
Terms of service Privacy policy
Powered by Answer