bayesnet / bnt

Bayes Net Toolbox for Matlab
460 stars 247 forks source link

error messagewhen i type test_BNT #57

Open sammadikhouloud opened 6 years ago

sammadikhouloud commented 6 years ago

please help me to fixe this issue, cd('C:\Program Files\FullBNT\FullBNT-1.0.4')

addpath(genpathKPM(pwd)) Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict. In path (line 109) In addpath (line 86) Warning: Function isscalar has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict. In path (line 109) In addpath (line 86) Warning: Function isvector has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict. In path (line 109) In addpath (line 86) cd('C:\Program Files\FullBNT\FullBNT-1.0.4\BNT') test_BNT

ll =

1.0e-10 *

-0.0670 0.1697

cycle 1 lik -51.5585 cycle 2 lik -45.0863 cycle 3 lik -42.9953 Undefined function or variable 'finite'.

Error in ffa (line 71) elseif ((lik-likbase)<(1+tol)*(oldlik-likbase)|~finite(lik))

Error in fa1 (line 27) [L1, Psi1, LL1] = ffa(X,k,max_iter);

Error in test_BNT (line 8) fa1

WANGXin1205 commented 6 years ago

use FullBNT-1.0.7. I remember 'cftool' will mark this mistake

imrf6 commented 5 years ago

In case anyone else has this issue, I also had it and followed WANGXin1205's advice. Using 1.0.7 fixed it for me, downloaded from here: https://code.google.com/archive/p/bnt/downloads