Why is there a +2 in the denominator of the last formula of the video…Why isnt it +1
Related to the video
hey @aarushi26 ,
In multivariate bernoulli naive bayes we consider 1/0 for each word which means we take 1 if word is present and 0 if word is not present. So for every word has two choices only, and while applying laplace smoothing we add 1 to the numerator, and 2 to the denominator.
i hope this helps.
Happy Leaning
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.