⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bk_ff_hmm_inf_engine.m

📁 贝叶斯算法(matlab编写) 安装,添加目录 /home/ai2/murphyk/matlab/FullBNT
💻 M
字号:
function engine = bk_ff_hmm_inf_engine(bnet)% BK_FF_HMM_INF_ENGINE Naive (HMM-based) implementation of fully factored form of Boyen-Koller % engine = bk_ff_hmm_inf_engine(bnet)%% This is implemented on top of the forwards-backwards algo for HMMs,% so it is *less* efficient than exact inference! However, it is good for educational purposes,% because it illustrates the BK algorithm very clearly.[persistent_nodes, transient_nodes] = partition_dbn_nodes(bnet.intra, bnet.inter);assert(isequal(sort(bnet.observed), transient_nodes));[engine.prior, engine.transmat] = dbn_to_hmm(bnet);ss = length(bnet.intra);engine.bel = [];engine.bel_marginals = [];engine.marginals = [];engine = class(engine, 'bk_ff_hmm_inf_engine', inf_engine(bnet));

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -