News for hackers. Stuff that matters.
Re:Ask HN: Is anyone here using Bayesian Networks? by danger on Monday October 04, 2010 @12:53AM (#1754652)
I use them, but there are plenty of libraries out there.

http://compbio.cs.huji.ac.il/FastInf/fastInf/FastInf_Homepag...

http://robotics.stanford.edu/~sgould/svl/

http://code.google.com/p/factorie/

http://people.kyb.tuebingen.mpg.de/jorism/libDAI/

http://research.microsoft.com/en-us/um/cambridge/projects/in...

BTW, factor graphs are generally more popular than Bayes Nets these days, at least in research circles. (Bayesian networks can be seen as a special case of factor graph.)

Re:Ask HN: Is anyone here using Bayesian Networks? by mitmatt on Monday October 04, 2010 @12:07PM (#1756117)
Those are a lot of great links! But I disagree with your "BTW" line:

I don't think factor graphs are more popular than Bayes nets (a.k.a. directed graphical models), at least not in general machine learning (though perhaps in some particular subfield?). Directed graphs are usually most appropriate for generative models, which are very popular, especially in Bayesian approaches. In graphical models, directed, undirected, and factor graphs are all used in their appropriate contexts.

And it's not accurate to say that directed models (Bayes nets) are a special case of factor graphs: there are conditional independence structures that can be represented by Bayes nets that can't be captured exactly with factor graphs. The canonical example is

O --> O <-- O

Re:Ask HN: Is anyone here using Bayesian Networks? by danger on Monday October 04, 2010 @05:56PM (#1757646)
Glad you like the links, but I disagree with your disagreement =P

You can use factor graphs for either directed or undirected models. See this paper:

Extending factor graphs so as to unify directed and undirected graphical models B. J. Frey Proceedings of the 19th Conference on Uncertainty in Artificial Intelligence, 257-264, Morgan Kaufmann, San Francisco, CA, August 2003.

Re:Ask HN: Is anyone here using Bayesian Networks? by ifesdjeen on Monday October 04, 2010 @03:07AM (#1754867)
I'm using Mahout, it does have Bayesian classifiers (Naive Bayes and Complementary Naive Bayes). However, Bayesian algorithms never worked well for my datasets. I went with LDA for my tasks :)

BTW, if you do want to develop a library to work with classifiers, my only "wish" would be to have a good export/import tools. Most libraries i worked with are using their own serialization formats, so it's quite difficult to import/export data without an overhead. If you write several adapters that could allow people to work with datasets through the adapters, i'm quite sure that ecosystem will get created by other people extremely fast. Some people use mongo, some use postgre, others use files, csv, serialized formats. It's great to be able to continue to use your own things without changes when running that kind of a lib.

Other "wish" thing is to have an ability to run classifier as a map/reduce job, and do it easily :)

Re:Ask HN: Is anyone here using Bayesian Networks? by mitmatt on Monday October 04, 2010 @11:54AM (#1756070)
Just so you know, the Latent Dirichlet Allocation is very much a Bayesian model, as it says in the original paper's abstract [1] (first google hit).

(LDA is a bit of an overloaded acronym in machine learning, but I'm assuming that's what you mean.)

[1] http://www.cs.princeton.edu/~blei/papers/BleiNgJordan2003.pd...

Re:Ask HN: Is anyone here using Bayesian Networks? by ifesdjeen on Tuesday October 05, 2010 @04:30AM (#1759021)
You can check out mahout implementation to see differences as well. LDA isn't supervised/trained.

Thanks for pointing that out, but i was speaking more of concrete algorithm implementation rather than abstracts.

Re:Ask HN: Is anyone here using Bayesian Networks? by w00t on Monday October 04, 2010 @10:32AM (#1755727)
http://www.cs.waikato.ac.nz/ml/weka/

has a pretty good Bayesian library

Re:Ask HN: Is anyone here using Bayesian Networks? by zdw on Monday October 04, 2010 @12:38AM (#1754618)
Just so you don't recreate the wheel, here's a Perl module that provides Bayesian text categorization:

http://search.cpan.org/~kwilliams/AI-Categorizer-0.09/

I'm currently using this (and String::Approx) on a not-so-secret project...