tik0 / bnt

Automatically exported from code.google.com/p/bnt
1 stars 0 forks source link

missing variable in fprintf in log_lik_complete.m #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. running log_lik_complete on a bnet with very low likelihoods

What is the expected output? What do you see instead?
Expected:
...
node 4 has very low likelihood
node 5 has very low likelihood
node 8 has very low likelihood
...
I see:
node node node node...

What version of the product are you using? On what operating system?
FullBNT-1.0.4 on Ubuntu linux

Please provide any additional information below.
To fix this, change line 27 in log_lik_complete.m from
if approxeq(exp(ll), 0),  fprintf('node %d has very low likelihood\n'); end

to

if approxeq(exp(ll), 0),  fprintf('node %d has very low likelihood\n', i); 
end

Original issue reported on code.google.com by giampisa...@gmail.com on 30 Mar 2010 at 4:48