TF-IDF Use case

How to use TF-IDF in Multinomial Naive Bayes? I want to know like at which step it should be used.At which step of Naive Bayes we should be performing Normalisation?

Hey @fguglani

Typically, we would use Word Counts as the input to a Multinomial Naive Bayes model. The shape of such data is: (No of Samples, Size of Vocab).
The output given by TF-IDF is also of the same shape and can be used as a direct replacement of the Word Count data matrix. Rest all things remain the same for such a replacement.

Hope this helps!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.