Mercurial > hg > camir-ismir2012
view toolboxes/FullBNT-1.0.7/bnt/examples/dynamic/water1.m @ 0:cc4b1211e677 tip
initial commit to HG from
Changeset:
646 (e263d8a21543) added further path and more save "camirversion.m"
author | Daniel Wolff |
---|---|
date | Fri, 19 Aug 2016 13:07:06 +0200 |
parents | |
children |
line wrap: on
line source
% Compare the speeds of various inference engines on the water DBN seed = 0; rand('state', seed); randn('state', seed); bnet = mk_water_dbn; T = 3; engine = {}; engine{end+1} = smoother_engine(jtree_2TBN_inf_engine(bnet)); engine{end+1} = smoother_engine(hmm_2TBN_inf_engine(bnet)); engine{end+1} = jtree_dbn_inf_engine(bnet); engine{end+1} = jtree_unrolled_dbn_inf_engine(bnet, T); %engine{end+1} = bk_inf_engine(bnet, 'ff', onodes); %engine{end+1} = bk_inf_engine(bnet, { [1 2], [3 4 5 6], [7 8] }, onodes); inf_time = cmp_inference_dbn(bnet, engine, T) learning_time = cmp_learning_dbn(bnet, engine, T)