Dear Verkatesh,
as you have correctly concluded from the code, libDAI currently does not
support parameter learning for undirected models. It would be a nice addition
to the feature set, though. The existing parameter estimation code for directed
graphical models was written by Charles Vaske and uses the EM algorithm to
handle missing data. What kind of support would you like to have? You can ask
your questions about the code here.
There are no plans regarding architecture/design. The EM code is somewhat orthogonal
to the rest of libDAI. I am not sure whether the best way to implement parameter
estimation for undirected models is by extending the EM code, or by writing some
other independent framework on top of the inference part of libDAI.
Obviously, it would be preferable to have one framework that can handle both
directed and undirected graphs, but I am not sure as to how this can be
designed in an optimal way.
Looking at the EMAlg code, I believe that large part of it is largely specific
to EM and dealing with missing values. Therefore, I believe that in your case I
would start writing a stochastic gradient descent class that is written in a
general way so that it can use any inference algorithm in libDAI. You have to
invent some mechanism for reading data (or use the Evidence class that is part
of the EMAlg code) and for specifying which parameters to learn and how they
are coupled. You could borrow some of the ideas from the EMAlg code.
There is online documentation at
http://cs.ru.nl/~jorism/libDAI/doc/
Especially relevant for you are:
http://cs.ru.nl/~jorism/libDAI/doc/fileformats.html
http://cs.ru.nl/~jorism/libDAI/doc/terminology.html
http://cs.ru.nl/~jorism/libDAI/doc/classdai_1_1EMAlg.html
Hope this helps. If you have more questions, this would be the right place to ask.
Best, Joris
> --
> You received this message because you are subscribed to the Google Groups
> "libDAI" group.
> To view this discussion on the web visit
https://groups.google.com/d/msg/libdai
> /-/bI4LfYcMwMgJ.
> To post to this group, send email to
lib...@googlegroups.com.
> To unsubscribe from this group, send email to
>
libdai+un...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/libdai?hl=
> en.