bayesnet / bnt

Bayes Net Toolbox for Matlab
460 stars 247 forks source link

About a bug in "learn_struct_K2" #65

Open lxq2018 opened 6 years ago

lxq2018 commented 6 years ago

Many thanks for sharing this very helpful toolbox!

A small bug is detected in "learn_struct_K2": Line 78, "while ~done & (length(ps) <= max_fan_in)" should be "while ~done & (length(ps) < max_fan_in)". Could you please fix it in the future version? Thanks!

By the way, it may be better to change "&" into "&&" in this line.

XQ Liu

WANGXin1205 commented 5 years ago

you are right