Mercurial > hg > camir-aes2014
annotate toolboxes/FullBNT-1.0.7/bnt/examples/dynamic/water1.m @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
rev | line source |
---|---|
wolffd@0 | 1 % Compare the speeds of various inference engines on the water DBN |
wolffd@0 | 2 seed = 0; |
wolffd@0 | 3 rand('state', seed); |
wolffd@0 | 4 randn('state', seed); |
wolffd@0 | 5 |
wolffd@0 | 6 bnet = mk_water_dbn; |
wolffd@0 | 7 |
wolffd@0 | 8 T = 3; |
wolffd@0 | 9 engine = {}; |
wolffd@0 | 10 engine{end+1} = smoother_engine(jtree_2TBN_inf_engine(bnet)); |
wolffd@0 | 11 engine{end+1} = smoother_engine(hmm_2TBN_inf_engine(bnet)); |
wolffd@0 | 12 engine{end+1} = jtree_dbn_inf_engine(bnet); |
wolffd@0 | 13 engine{end+1} = jtree_unrolled_dbn_inf_engine(bnet, T); |
wolffd@0 | 14 |
wolffd@0 | 15 %engine{end+1} = bk_inf_engine(bnet, 'ff', onodes); |
wolffd@0 | 16 %engine{end+1} = bk_inf_engine(bnet, { [1 2], [3 4 5 6], [7 8] }, onodes); |
wolffd@0 | 17 |
wolffd@0 | 18 inf_time = cmp_inference_dbn(bnet, engine, T) |
wolffd@0 | 19 learning_time = cmp_learning_dbn(bnet, engine, T) |
wolffd@0 | 20 |