How to get EM log-likelihood score

The engine.
Post Reply
Razi
Posts: 6
Joined: Tue Jan 27, 2015 8:38 am

How to get EM log-likelihood score

Post by Razi »

Hi ,
i am using EM to learn Bayesian network. As in this tutorial has been said:
https://dslpitt.org/genie/wiki/Reference_Manual:_DSL_em

i use : int Learn(const DSL_dataset &data, DSL_network &net, const vector<DSL_datasetMatch>& matches, double *loglik = NULL) function in c++. But the loglik always remains 0 after learning. what's wrong?

thanks in advance
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: How to get EM log-likelihood score

Post by shooltz[BayesFusion] »

What's the return code from DSL_em::Learn?
Razi
Posts: 6
Joined: Tue Jan 27, 2015 8:38 am

Re: How to get EM log-likelihood score

Post by Razi »

Oh i found my mistake :P that was the initialization of my loglik pointer! now it works fine :)
Post Reply