2009-03-24 20:01 Matlab 7.0 添加BNT工具箱,转

采用MATLAB语言编制的贝叶斯网络工具箱(Bayesian Networks Toolbox,BNT)可实现贝叶斯网络结构学习、参数学习、推理和构建贝叶斯分类器,此工具箱在贝叶斯学习编程方面非常灵活。

官方主页:http://www.cs.ubc.ca/~murphyk/Software/BNT/bnt.html官方下载:http://www.cs.ubc.ca/~murphyk/Software/BNT/FullBNT-1.0.4.zip

原文链接:http://hi.baidu.com/zgyz/blog/item/2d3627f415c7fbe77709d763.html

贝叶斯网络:http://www.cs.ubc.ca/~murphyk/Software/BNT/bnt.html语音工具箱:http://www.ee.ic.ac.uk/hp/staff/dmb/voicebox/voicebox.html

1、解压FullBNT-1.0.4.zip,将整个目录FullBNT-1.0.4复制到MATLAB的安装目录的TOOLBOX目录下,如D:\MATLAB7\toolbox\

2、打开Matlab,在MATLAB命令窗口中输入以下命令: >>cd D:\MATLAB7\toolbox\FullBNT-1.0.4 >>addpath(genpathKPM(pwd)) >>

将TOOLBOX下新加的BNT工具箱加到MATLAB的搜索路径中去。

添加BNT工具箱的MATLAB的搜索路径也可采用如下指令 >>addpath(genpath('D:\MATLAB7\toolbox\FullBNT-1.0.4')) >>

3、为了永久保存上面的路径,以免下次重启MATLAB时重新添加,在MATLAB命令窗口下使用下面的命令: >>savepath >>

4、检验是否成功设置的方法: 在命令窗口中输入以下命令:which test_BNT.m(可以为所加工具箱的任一个M文件名称),如果显示正确,就说明上面的设置成功。 >>which test_BNT.m D:\MATLAB7\toolbox\FullBNT-1.0.4\BNT\test_BNT.m >>

以下为可能出现的问题及解决办法 Warning: Function C:\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 89 Warning: Function C:\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 89 Warning: Function C:\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 89 >>

源地址:http://hi.baidu.com/73290673/item/21db99f36d90bc49932af29d