If the score is 0, then it's category is assumed as default. If there is a score, then naive bayes takes the largest scored, and cnb takes the lowest scored category. ------ Robin Anil
On Sat, Jan 28, 2012 at 5:32 PM, Stuart Smith <[email protected]> wrote: > > > Any idea if there is a default setting in the mahout implementation of > naive bayes that has a threshold below which it does trigger? And would > explain it not classifying anything? > > ..yes, I'll dig around in the code if I need to - but if you know off the > top of your head... :) > > > Take care, > -stu > > > > ________________________________ > From: Ted Dunning <[email protected]> > To: [email protected]; Stuart Smith <[email protected]> > Sent: Saturday, January 28, 2012 12:36 PM > Subject: Re: Diagnosing naive bayes results > > > It always tells you the most likely category, but you can redefine the > output to only trigger if the most likely category really dominates the > results. > > With two categories, this is reasonable. For a dozen it is much more > debatable. > > This works with the SGD classifiers as well and I have seen this used in a > multi-level classifier. > > > On Fri, Jan 27, 2012 at 8:06 PM, Stuart Smith <[email protected]> wrote: > > Hello, > > > >Does naive bayes always classify a document into a category? > >Or will it refuse to classify something it cannot? > > >
