RE: Naive Bayes Classification

2014-11-11 Thread Andrew Palumbo
The Naive Bayes model is serialized automatically as naiveBayesModel.bin in by TrainNaiveBayesJob.java [1] (the driver for $ mahout trainnb). To give you an idea of how, the serialization code can be found in NaiveBayesModel.java line 135 [2] [1]

Re: Naive Bayes classification

2014-03-18 Thread Frank Scholten
Hi Tharindu, If I understand correctly seqdirectory creates labels based on the file name but this is not what you want. What do you want the labels to be? Cheers, Frank On Tue, Mar 18, 2014 at 2:22 PM, Tharindu Rusira tharindurus...@gmail.comwrote: Hi everyone, I'm developing an

Re: Naive Bayes classification

2014-03-18 Thread Suneel Marthi
Tharindu, If I understand what u r trying to do:- a) You have a trained Bayes model. b) You would like to classify new documents using this trained model. c) You were trying to use TestNaiveBayesDriver to classify the documents in (b). Option 1: --- You could write a custom MapReduce

Re: Naive Bayes classification

2014-03-18 Thread Tharindu Rusira
Hi, first of all I'm sorry that my previous mail was vague and poorly formulated. Yes, Suneel got exactly what I was asking.Both options will address my requirement. Thanks a lot. -Tharindu On Mar 19, 2014 8:51 AM, Suneel Marthi suneel_mar...@yahoo.com wrote: Tharindu, If I understand what u

Re: Naive Bayes classification questions

2012-07-23 Thread David Engel
On Sat, Jul 21, 2012 at 11:51:02AM -0500, Robin Anil wrote: -- Robin Anil On Fri, Jul 20, 2012 at 3:27 PM, David Engel da...@istwok.net wrote: Hi, I have a couple of questions regarding Naive Bayes classification in Mahout 0.7. Is there a preferred way to determine when a

Re: Naive Bayes classification questions

2012-07-21 Thread Robin Anil
-- Robin Anil On Fri, Jul 20, 2012 at 3:27 PM, David Engel da...@istwok.net wrote: Hi, I have a couple of questions regarding Naive Bayes classification in Mahout 0.7. Is there a preferred way to determine when a document doesn't belong to any of the given categories? Currently, I'm