Quantcast
Channel: Machine Learning
Viewing all articles
Browse latest Browse all 62625

How to factor in tf-idf with Naive Bayes?

$
0
0

From my understanding of naive bayes (multinomial edition), it has to deal with the count of the word for each class and the total count of all words in the class for the following part of the formula, so I am a tad confused:

P(word|class)=(word_count_in_class + 1)/(total_words_in_class+total_unique_words_in_class) 
submitted by mangaprincess
[link][9 comments]

Viewing all articles
Browse latest Browse all 62625

Trending Articles