【问题标题】:Bayes Net Toolbox for Matlab installation error MATLAB R2010bBayes Net Toolbox for Matlab 安装错误 MATLAB R2010b
【发布时间】:2012-12-15 06:37:31
【问题描述】:

尝试测试Bayes Net Toolbox for Matlab 时出现错误,我正在执行与here 显示的安装相同的操作,但出现错误(我有 Matlab R2010b):

>> cd 'C:\MATLAB\R2010b\FullBNT-1.0.4'
>> addpath(genpathKPM(pwd))
Warning: Function C:\MATLAB\R2010b\FullBNT-1.0.4\KPMtools\assert.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:\MATLAB\R2010b\FullBNT-1.0.4\KPMtools\isscalar.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:\MATLAB\R2010b\FullBNT-1.0.4\KPMtools\isvector.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

>> 

【问题讨论】:

    标签: matlab bayesian-networks


    【解决方案1】:

    正如您所说:用 isfinite 替换对过时有限的调用 在 BNT/examples/static/Zoubin/ffa.m 和 BNT/examples/static/Zoubin/mfa.m

    这是reference

    【讨论】:

      【解决方案2】:

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

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

      所以test_BNT 现在可以工作了。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2013-12-11
        • 2015-03-06
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-04-21
        • 1970-01-01
        相关资源
        最近更新 更多