annotate toolboxes/FullBNT-1.0.7/bnt/examples/dynamic/bkff1.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 different implementations of fully factored Boyen Koller
wolffd@0 2
wolffd@0 3 water = 1;
wolffd@0 4 if water
wolffd@0 5 bnet = mk_water_dbn;
wolffd@0 6 else
wolffd@0 7 N = 5;
wolffd@0 8 Q = 2;
wolffd@0 9 Y = 2;
wolffd@0 10 bnet = mk_chmm(N, Q, Y);
wolffd@0 11 end
wolffd@0 12 ss = length(bnet.intra);
wolffd@0 13
wolffd@0 14 engine = {};
wolffd@0 15 engine{end+1} = bk_inf_engine(bnet, 'clusters', 'ff');
wolffd@0 16 engine{end+1} = bk_ff_hmm_inf_engine(bnet);
wolffd@0 17 E = length(engine);
wolffd@0 18
wolffd@0 19 T = 5;
wolffd@0 20 time = cmp_inference_dbn(bnet, engine, T, 'singletons_only', 1)
wolffd@0 21
wolffd@0 22
wolffd@0 23