snap-stanford / snap

Stanford Network Analysis Platform (SNAP) is a general purpose network analysis and graph mining library.
Other
2.17k stars 797 forks source link

Log Likelihood Modification in Kronfit #48

Open isukrit opened 10 years ago

isukrit commented 10 years ago

I was also wondering what changes should I make in the code if i want to compute the log likelihood in Kronfit a way such that it considers the log likelihood of the graph considering the probability of the edges for nodes which are non existent in the initial graph as zero. I tried the KronEM version but it scales the initial parameters after 1 iteration and doesn't run (gives an error) for a single iteration for both E and M.

Thanks!

roks commented 10 years ago

Please refer to CalcGraphLL() or CalcApxGraphLL() for a function for the log-likelihood (kronfit) of a graph instance considering non-edges. Regarding your error report, it is hard diagnose the problem without additional details on what the input is and the details about the error. Ideally, we need a small input sample that allows us to replicate the problem.