NLP, Classification, Data Science, Data Science Projects.
the log likelihood of each word Inputs : bow : bag of words (n_doc,n_words) target : classification of comments (n_doc,1) Output : Return a vector of Log Likelihood for each comment (Naïve Bayes) (n_doc,1) ''' log = np.log(probNB(bow,target,1)/probNB(bow,target,0)) m = bow.dot(log) model =