3

I used this code which uses RNNs for spam detection and got reasonable results. But when I use the same code for sentiment analysis, the model overfits badly: its training accuracy keep growing, but its test accuracy remains the same. The dictionary overlap between the training set and test set is almost the same for my two datasets. The number of training samples is also comparable for these two tasks. What is the reason for this overfitting? Does it relate to the nature of the tasks?

Hossein
  • 3,170
  • 1
  • 16
  • 32

0 Answers0