Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing variable in fprintf in log_lik_complete.m #2

Open
GoogleCodeExporter opened this issue Jun 8, 2015 · 0 comments
Open

missing variable in fprintf in log_lik_complete.m #2

GoogleCodeExporter opened this issue Jun 8, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 30 Mar 2010 at 4:48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant