bayesnet / bnt

Bayes Net Toolbox for Matlab
460 stars 247 forks source link

test_BNT giving error for function CPD_to_CPT #70

Open meghalD opened 5 years ago

meghalD commented 5 years ago

I followed all the relevant steps and ran test_BNT command. It ran properly for a while but gave an error at a later stage for CPD_to_CPT function name. I even tried changing the name of the function for the files mentioned in the error but it made the situation worse.

Error was as follows:

_

Error: File: CPD_to_CPT.m Line: 36 Column: 16 Function with duplicate name "CPD_to_CPT" cannot be defined.

Error in discrete_CPD/convert_to_pot (line 14) CPT1 = CPD_to_CPT(CPD);

Error in jtree_inf_engine/enter_evidence (line 57) pot{n} = convert_to_pot(bnet.CPD{e}, pot_type, fam(:), evidence);

Error in qmr1 (line 84) tic; [engine{2}, ll(2)] = enter_evidence(engine{2}, big_evidence); toc

_