Classifying with Bayesian decision
Choose the class with the higher probility, which is the Bayesian decision theory in a nutshell.
Classifying with Conditional Probability
p(ci|[x,j])=p([x,y]|ci)p(ci)p([x,y])
Naive Bayes Assumption
- Independence among all the features.
- Every feature is equally important.
some Code
Underflow
We can solve the underflow problem by using the the logarithm of probability in our calculations.