Matlab 7.0 添加BNT工具箱
采用MATLAB語言編制的貝葉斯網(wǎng)絡(luò)工具箱(Bayesian Networks Toolbox,BNT)可實現(xiàn)貝葉斯網(wǎng)絡(luò)結(jié)構(gòu)學習、參數(shù)學習、推理和構(gòu)建貝葉斯分類器,此工具箱在貝葉斯學習編程方面非常靈活。
官方主頁: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
貝葉斯網(wǎng)絡(luò):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、檢驗是否成功設(shè)置的方法:
在命令窗口中輸入以下命令:which test_BNT.m(可以為所加工具箱的任一個M文件名稱),如果顯示正確,就說明上面的設(shè)置成功。
>> which test_BNT.m
D:\MATLAB7\toolbox\FullBNT-1.0.4\BNT\test_BNT.m
>>
以下為可能出現(xiàn)的問題及解決辦法
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