comparison toolboxes/FullBNT-1.0.7/bnt/examples/dynamic/loopy_dbn1.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 N = 1; % single chain = HMM - should give exact answers
2 Q = 2;
3 rand('state', 0);
4 randn('state', 0);
5 discrete = 1;
6 if discrete
7 Y = 2; % size of output alphabet
8 else
9 Y = 1;
10 end
11 coupled = 1;
12 bnet = mk_chmm(N, Q, Y, discrete, coupled);
13 ss = N*2;
14
15 T = 3;
16
17 engine = {};
18 engine{end+1} = jtree_dbn_inf_engine(bnet);
19 engine{end+1} = jtree_unrolled_dbn_inf_engine(bnet, T);
20 engine{end+1} = pearl_unrolled_dbn_inf_engine(bnet, 'protocol', 'tree');
21
22 inf_time = cmp_inference_dbn(bnet, engine, T)
23 learning_time = cmp_learning_dbn(bnet, engine, T)
24