Return the most likely label
Return the most likely label
Return the most likely label
Return the most likely label
Transforms output labels L=>M.
Transforms output labels L=>M. if f(x) is not one-to-one then the max of score from the L's are used.
Returns the unnormalized log probability of each class for the given document.
Returns the unnormalized log probability of each class for the given document.
Implements a Naive-Bayes Classifer over bags of words. It automatically trains itself given the collection c of learning examples.