Naive Bayes Classification


#1

URL: http://en.diveintodeeplearning.org/chapter_crashcourse/naive-bayes.html


#2

In definition of bayespost(data) function, the x in logpost += (logpx * x + logpxneg * (1-x)).sum(0) should be data.