comparison toolboxes/FullBNT-1.0.7/bnt/examples/dynamic/water2.m @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e9a9cd732c1e
1 % Compare the speeds of various inference engines on the water DBN
2 seed = 0;
3 rand('state', seed);
4 randn('state', seed);
5
6 bnet = mk_water_dbn;
7
8 T = 3;
9
10 engine = {};
11 engine{end+1} = smoother_engine(jtree_2TBN_inf_engine(bnet));
12 engine{end+1} = smoother_engine(jtree_sparse_2TBN_inf_engine(bnet));
13 engine{end+1} = smoother_engine(hmm_2TBN_inf_engine(bnet));
14 engine{end+1} = jtree_dbn_inf_engine(bnet);
15 %engine{end+1} = jtree_unrolled_dbn_inf_engine(bnet, T);
16
17 %engine{end+1} = bk_inf_engine(bnet, 'ff', onodes);
18 %engine{end+1} = bk_inf_engine(bnet, { [1 2], [3 4 5 6], [7 8] }, onodes);
19
20 inf_time = cmp_inference_dbn(bnet, engine, T)
21 %learning_time = cmp_learning_dbn(bnet, engine, T)
22