You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by ta...@gmail.com on 2011/05/04 07:53:16 UTC

Re: Nave Bayes Classifier and probability calculation for a singletest edxample

Sent from BlackBerry® on Airtel

-----Original Message-----
From: gaurav garg <ga...@gmail.com>
Date: Wed, 4 May 2011 00:37:53 
To: <us...@mahout.apache.org>
Reply-To: user@mahout.apache.org
Cc: <ma...@lucene.apache.org>
Subject: Re: Nave Bayes Classifier and probability calculation for a single
 test example

Hi Svetlomir,

You can use ClassifierContext class (
https://builds.apache.org/hudson/job/Mahout-Quality/javadoc/index.html?org/apache/mahout/common/StringTuple.html)
to get the top N matching result and their respective scores.

Hope it helps.

Thanks
Gaurav