Google Answers Logo
View Question
 
Q: Source Code for Naive Bayesian Classifier ( Answered,   0 Comments )
Question  
Subject: Source Code for Naive Bayesian Classifier
Category: Computers > Programming
Asked by: engineeringstudent-ga
List Price: $10.00
Posted: 25 Oct 2003 10:59 PDT
Expires: 24 Nov 2003 09:59 PST
Question ID: 269634
Where can I find the source code for Naive Bayesian classifier? Naive
Bayesian Classifier is a classification tool in Data Mining. It makes
use of the Bayes' rule of probability. I want the source code in C/C++
or Matlab. I should be able to download and compile the source code.
Answer  
Subject: Re: Source Code for Naive Bayesian Classifier
Answered By: bookface-ga on 03 Nov 2003 08:46 PST
 
Thanks for your question, engineering-student.

The source code you are looking for (and as an added bonus, ELF
executables) are available at the following location:
http://www.public.asu.edu/~huanliu/FSBOOK/CODE/WSBG/NBC/

Search strategy:
://www.google.com/search?q=Naive+Bayesian+Classifier+i%2B%2B
(Naive Bayesian Classifier i++)

Searching for common syntax is often an ideal way to find
implementations of common algorithms in your language of choice.

I hope that we've met your needs with this answer; thanks again for
your question, and for choosing Google! Answers.

- bookface

Request for Answer Clarification by engineeringstudent-ga on 03 Nov 2003 14:26 PST
I am looking for a single 'C' file which has the code and not multiple
files. Also this file contains header files which are defined by the
user. This would not be acceptable.

Clarification of Answer by bookface-ga on 03 Nov 2003 23:09 PST
I am sorry that your needs were not met with the prior answer. I would
like to politely remind you that expressing your question clearly with
all restrictions beforehand leads to better results and saves time for
both researchers and you.

I am also sorry to inform you I do not believe you will find code that
does complete Naive Bayesian parsing in a single file with no
includes; that's just not how (good) C/C++ code is written, though I
must admit I'm not familiar with MatLab code.

A few more sites with code that you may perhaps find acceptable,
though they still are in multiple files:
http://www-2.cs.cmu.edu/afs/cs/project/theo-11/www/naive-bayes/bow_diff/naivebayes.c
(part of the "Bag O Words" Library which you could incorporate into
your needs)
http://www.cs.bris.ac.uk/Teaching/Resources/COMSM0301/cw3/Tertius/

I could theoretically rewrite one of these into a single-file format;
virtually anything in a user-defined header file can be moved into the
main source. However, I am not sure this is what you want, either, and
it would be well outside the scope of the original question.

Perhaps this will be helpful to you, though frankly I know noting
about MatLab code:
http://www.inf.ed.ac.uk/teaching/modules/dme/matlab/ccgmbuild.m

I hope this answer was more helpful than the last; I am sorry that you
were not satisified with the results, but multiple source files are
very common for larger projects and are very much a viable solution
for practically any application.

- bookface
Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy