I'm a Principal Engineer for Red Hat, as part of the Open Source and Standards Group. Joseph has posted 7 posts at DZone. You can read more from them at their website. View Full User Profile

Java Bayesian Classifier ci-bayes 1.0 released

  • submit to reddit



A simple example of how the classifier works might look like this:

FisherClassifier fc=new FisherClassifierImpl();





Average: 5 (1 vote)
Published at DZone with permission of its author, Joseph Ottinger.



Raphael Valyi replied on Sun, 2008/06/22 - 8:08am


 how does ci-bayes compares to the Weka bayesian classifier here: http://www.cs.waikato.ac.nz/~ml/weka/  ?

Why a new project?



Raphaël Valyi.

Joseph Ottinger replied on Sun, 2008/06/22 - 10:30am

Well, it doesn't present itself as a GUI for the experimenter or explorer. It also has a much simpler data model (from what I can see) and aims to be very direct about what it does. I remember looking at Weka at some point and not grasping what it was that I was trying to be told.

For me, bayesian analysis should be simple: I train the system with what I want, and I get a result back. No special files, no special syntax, no jargon (unless you refer to "corpus" and "corpora" as jargon, which is fair enough!), and it's straightforward.

That doesn't mean Weka isn't worth investigating; I just felt that it didn't satisfy my needs, so I wrote my own, again given permission from Toby Segaran.

mr Plow replied on Tue, 2008/07/08 - 7:15am

When I try to serialize an instance of com.enigmastation.classifier.impl.FisherClassifierImpl I get this:

java.io.NotSerializableException: com.enigmastation.classifier.impl.StemmingWordLister

What am I doing wrong?  Thanks.

mr Plow replied on Tue, 2008/07/08 - 4:44pm

        at com.enigmastation.classifier.persistence.Serializer.load(Serializer.java:36)

Joseph Ottinger replied on Wed, 2008/07/09 - 7:35am

The direct serialization stuff is broken at the moment, acknowledged. Create an issue for it and I'll see what I can do - but honestly, serializing the classifier itself is not a very good idea. It's much better to use the serialization event notification system.

mr Plow replied on Wed, 2008/07/30 - 6:48am

getClassification() seems to require two string values.  What is the second value for?

Joseph Ottinger replied on Wed, 2008/07/30 - 8:33am in response to: mr Plow

[quote=mrplow]getClassification() seems to require two string values.  What is the second value for?
[/quote]The second parameter would be the "default classification" if there's no strong match.

Aliaksandr Maka... replied on Fri, 2008/11/21 - 3:19am

Can't I remove category?

Comment viewing options
