Matlab 7.0 添加BNT工具箱
采用MATLAB语言编制的贝叶斯网络工具箱(Bayesian Networks Toolbox,BNT)可实现贝叶斯网络结构学习、参数学习、推理和构建贝叶斯分类器,此工具箱在贝叶斯学习编程方面非常灵活。
官方主页:http://www.cs./~murphyk/Software/BNT/bnt.html
官方下载:http://www.cs./~murphyk/Software/BNT/FullBNT-1.0.4.zip
原文链接:http://hi.baidu.com/zgyz/blog/item/2d3627f415c7fbe77709d763.html
贝叶斯网络:http://www.cs./~murphyk/Software/BNT/bnt.html
语音工具箱:http://www.ee./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/zgyz/blog/item/2d3627f415c7fbe77709d763.html