matlab - 用于MATLAB安装的Bayes网络工具箱 MATLAB R2010b

  显示原文与译文双语对照的内容
0 0

当尝试测试 Matlab Bayes Toolbox Toolbox时出现错误,我正在做与这里显示的安装相同的安装,但得到错误( 我有 R2010b ):

>> cd 'C:MATLABR2010bFullBNT-1.0.4'
>> addpath(genpathKPM(pwd))
Warning: Function C:MATLABR2010bFullBNT-1.0.4KPMtoolsassert.m has
the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential
name conflict. 
> In path at 110
 In addpath at 87
Warning: Function C:MATLABR2010bFullBNT-1.0.4KPMtoolsisscalar.m has
the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential
name conflict. 
> In path at 110
 In addpath at 87
Warning: Function C:MATLABR2010bFullBNT-1.0.4KPMtoolsisvector.m has
the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential
name conflict. 
> In path at 110
 In addpath at 87
>> test_BNT
ll =
 1.0e-010 *
 -0.0670 0.1697
cycle 1 lik -51.5585 
cycle 2 lik -45.0863 
cycle 3 lik -42.9953 
??? Undefined function or method 'finite' for input arguments of type 'double'.
Error in ==> ffa at 71
 elseif ((lik-likbase)<(1+tol)*(oldlik-likbase)|~finite(lik))
Error in ==> fa1 at 27
[L1, Psi1, LL1] = ffa(X,k,max_iter);
Error in ==> test_BNT at 8
fa1
>> 
时间:原作者:2个回答

0 0

使用新版本> 7.8 - 用 isfinite 替换对过时 finite的调用

BNT/examples/static/Zoubin/ffa.m and BNT/examples/static/Zoubin/mfa.m

所以 test_BNT 现在会工作。

原作者:
...