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

Suspected bug wrt node sizes in potentials #25

Open
GoogleCodeExporter opened this issue Mar 20, 2015 · 2 comments
Open

Suspected bug wrt node sizes in potentials #25

GoogleCodeExporter opened this issue Mar 20, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

First, let me thank you for providing and taking care for this great toolkit! 
I've been using it for a while and it opened lots of new possibilities for my 
research! 

What steps will reproduce the problem?
I have attached an .m file which reproduces the error. Note that the file is 
based on the Mixture-of-Experts example provided on this website. I changed the 
network to have dimension 2 in the node denoted by X. The error occurs in 
enter_evidence when assuming only X to be observed as evidence. If any other 
node is observed, the error does not occur. Also, the model can be learned 
without error. I added the comment "fails" to the respective lne in the script.

What is the expected output? What do you see instead?
Error using  + 
Matrix dimensions must agree.

Error in cpot/multiply_by_pot (line 11)
  bigpot.h(u) = bigpot.h(u) + smallpot.h;

Error in cgpot/multiply_by_pot (line 18)
  bigpot.can{i} = multiply_by_pot(bigpot.can{i}, smallpot.can{src});

Error in jtree_inf_engine/init_pot (line 17)
  clpot{c} = multiply_by_pot(clpot{c}, pots{i});

Error in jtree_inf_engine/enter_evidence (line 77)
[clpot, seppot] = init_pot(engine, clqs, pot, pot_type, onodes);

Error in TEST (line 36)
engine = enter_evidence(engine, {[-0.31; 0.1]; []; []});% fails

What version of the product are you using? On what operating system?
latest copmment in changelog is "7 May 2010 wsun", so I think it's the latest 
version of BNT; Matlab 2011b, Windows 7

Please provide any additional information below.
I am not very eductated wrt Bayesian networks, but I still have a suspicion 
what could be the "bug". IN multiply_by_pot, smalpot and bigpot are combined, 
where in bigpot, the observed continuous node's size has been set to 0 (see 
also bnt help on this page), while smallpot (the same observed ct. node) has 
size 2.


Original issue reported on code.google.com by [email protected] on 21 Mar 2012 at 7:59

Attachments:

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