Different results between the Bernoulli Naive Bayes in NLTK and in scikit-learn

后端 未结 1 1190
渐次进展
渐次进展 2020-12-21 22:18

I am getting quite different results when classifying text (in only two categories) with the Bernoulli Naive Bayes algorithm in NLTK and the one in scikit-learn module. Alth

相关标签:
1条回答
  • 2020-12-21 22:30

    NLTK does not implement Bernoulli Naive Bayes. It implements multinomial Naive Bayes but only allows binary features.

    0 讨论(0)
提交回复
热议问题