If you want to see an implementation w/o using scikit, checkout this implementation that classifies the newsgroup dataset: <a href="http://www.eggie5.com/66-naive-bayes-classifier-implementation" rel="nofollow">http://www.eggie5.com/66-naive-bayes-classifier-implementati...</a>