Hello, the elements of the vector are not actually probabilities, they are 
scores,  the classification is a winner takes all approach, assigning the 
classification to the class with the max score.

See: http://mahout.apache.org/users/algorithms/spark-naive-bayes.html for an 
overview of the algorithm.

Thanks

________________________________________
From: Nantia Makrynioti <nantiam...@gmail.com>
Sent: Wednesday, May 11, 2016 10:33:29 PM
To: user@mahout.apache.org
Subject: Negative probabilities

Hello,

I am using the classifyFullInstance method on a Naive Bayes model, but when
I print the elements of the generated vector, the probabilities are
negative. What might be the reason for this?

Thanks a lot,
Nantia

Reply via email to