Initial commit of libDAI-0.2.1
[libdai.git] / tests / aliases.conf
1 BP_SEQFIX: BP[updates=SEQFIX,tol=1e-9,maxiter=10000,verbose=0]
2 BP_SEQRND: BP[updates=SEQRND,tol=1e-9,maxiter=10000,verbose=0]
3 BP_SEQMAX: BP[updates=SEQMAX,tol=1e-9,maxiter=10000,verbose=0]
4 BP_PARALL: BP[updates=PARALL,tol=1e-9,maxiter=10000,verbose=0]
5
6 JTREE_HUGIN: JTREE[updates=HUGIN,verbose=0]
7 JTREE_SHSH: JTREE[updates=SHSH,verbose=0]
8
9 MF_SEQRND: MF[tol=1e-9,maxiter=10000,verbose=0]
10
11 TREEEP: TREEEP[type=ORG,tol=1e-9,maxiter=10000,verbose=0]
12 TREEEPWC: TREEEP[type=ALT,tol=1e-9,maxiter=10000,verbose=0]
13
14 MR: MR[updates=FULL,inits=RESPPROP,verbose=0,tol=1e-9]
15 MR_RESPPROP_FULL: MR[updates=FULL,inits=RESPPROP,verbose=0,tol=1e-9]
16 MR_RESPPROP_LINEAR: MR[updates=LINEAR,inits=RESPPROP,verbose=0,tol=1e-9]
17 MR_CLAMPING_FULL: MR[updates=FULL,inits=CLAMPING,verbose=0,tol=1e-9]
18 MR_CLAMPING_LINEAR: MR[updates=LINEAR,inits=CLAMPING,verbose=0,tol=1e-9]
19 MR_EXACT_FULL: MR[updates=FULL,inits=EXACT,verbose=0,tol=1e-9]
20 MR_EXACT_LINEAR: MR[updates=LINEAR,inits=EXACT,verbose=0,tol=1e-9]
21
22 LCBP_FULLCAVin_SEQFIX: LC[cavity=FULL,reinit=1,updates=SEQFIX,maxiter=10000,cavainame=BP,cavaiopts=[updates=SEQMAX,tol=1e-9,maxiter=10000,verbose=0],tol=1e-9,verbose=0]
23 LCBP_FULLCAVin_SEQRND: LC[cavity=FULL,reinit=1,updates=SEQRND,maxiter=10000,cavainame=BP,cavaiopts=[updates=SEQMAX,tol=1e-9,maxiter=10000,verbose=0],tol=1e-9,verbose=0]
24 LCBP_FULLCAVin_NONE: LC[cavity=FULL,reinit=1,updates=SEQFIX,maxiter=0,cavainame=BP,cavaiopts=[updates=SEQMAX,tol=1e-9,maxiter=10000,verbose=0],tol=1e-9,verbose=0]
25 LCBP_FULLCAV_SEQFIX: LC[cavity=FULL,reinit=0,updates=SEQFIX,maxiter=10000,cavainame=BP,cavaiopts=[updates=SEQMAX,tol=1e-9,maxiter=10000,verbose=0],tol=1e-9,verbose=0]
26 LCBP_FULLCAV_SEQRND: LC[cavity=FULL,reinit=0,updates=SEQRND,maxiter=10000,cavainame=BP,cavaiopts=[updates=SEQMAX,tol=1e-9,maxiter=10000,verbose=0],tol=1e-9,verbose=0]
27 LCBP_FULLCAV_NONE: LC[cavity=FULL,reinit=0,updates=SEQFIX,maxiter=0,cavainame=BP,cavaiopts=[updates=SEQMAX,tol=1e-9,maxiter=10000,verbose=0],tol=1e-9,verbose=0]
28 LCBP_PAIRCAVin_SEQFIX: LC[cavity=PAIR,reinit=1,updates=SEQFIX,maxiter=10000,cavainame=BP,cavaiopts=[updates=SEQMAX,tol=1e-9,maxiter=10000,verbose=0],tol=1e-9,verbose=0]
29 LCBP_PAIRCAVin_SEQRND: LC[cavity=PAIR,reinit=1,updates=SEQRND,maxiter=10000,cavainame=BP,cavaiopts=[updates=SEQMAX,tol=1e-9,maxiter=10000,verbose=0],tol=1e-9,verbose=0]
30 LCBP_PAIRCAVin_NONE: LC[cavity=PAIR,reinit=1,updates=SEQFIX,maxiter=0,cavainame=BP,cavaiopts=[updates=SEQMAX,tol=1e-9,maxiter=10000,verbose=0],tol=1e-9,verbose=0]
31 LCBP_PAIRCAV_SEQFIX: LC[cavity=PAIR,reinit=0,updates=SEQFIX,maxiter=10000,cavainame=BP,cavaiopts=[updates=SEQMAX,tol=1e-9,maxiter=10000,verbose=0],tol=1e-9,verbose=0]
32 LCBP_PAIRCAV_SEQRND: LC[cavity=PAIR,reinit=0,updates=SEQRND,maxiter=10000,cavainame=BP,cavaiopts=[updates=SEQMAX,tol=1e-9,maxiter=10000,verbose=0],tol=1e-9,verbose=0]
33 LCBP_PAIRCAV_NONE: LC[cavity=PAIR,reinit=0,updates=SEQFIX,maxiter=0,cavainame=BP,cavaiopts=[updates=SEQMAX,tol=1e-9,maxiter=10000,verbose=0],tol=1e-9,verbose=0]
34 LCBP_UNICAV_SEQFIX: LC[cavity=UNIFORM,updates=SEQFIX,maxiter=10000,tol=1e-9,verbose=0,cavaiopts=[],cavainame=NONE]
35 LCBP_UNICAV_SEQRND: LC[cavity=UNIFORM,updates=SEQRND,maxiter=10000,tol=1e-9,verbose=0,cavaiopts=[],cavainame=NONE]
36 LCBP_PAIR2CAV_SEQFIX: LC[cavity=PAIR2,reinit=0,updates=SEQFIX,maxiter=10000,cavainame=BP,cavaiopts=[updates=SEQMAX,tol=1e-9,maxiter=10000,verbose=0],tol=1e-9,verbose=0]
37 LCBP_PAIRINTCAV_SEQFIX: LC[cavity=PAIRINT,reinit=0,updates=SEQFIX,maxiter=10000,cavainame=BP,cavaiopts=[updates=SEQMAX,tol=1e-9,maxiter=10000,verbose=0],tol=1e-9,verbose=0]
38 LCBP_PAIRCUMCAV_SEQFIX: LC[cavity=PAIRCUM,reinit=0,updates=SEQFIX,maxiter=10000,cavainame=BP,cavaiopts=[updates=SEQMAX,tol=1e-9,maxiter=10000,verbose=0],tol=1e-9,verbose=0]
39 LCTREEEP: LC[cavity=FULL,reinit=1,updates=SEQFIX,maxiter=10000,cavainame=TREEEP,cavaiopts=[type=ORG,tol=1e-9,maxiter=10000,verbose=0],tol=1e-9,verbose=0]
40 LCMF: LC[cavity=FULL,reinit=1,updates=SEQFIX,maxiter=10000,cavainame=MF,cavaiopts=[tol=1e-9,maxiter=10000,verbose=0],tol=1e-9,verbose=0]
41
42 GBP_MIN: HAK[doubleloop=0,clusters=MIN,tol=1e-9,maxiter=10000,verbose=0]
43 GBP_DELTA: HAK[doubleloop=0,clusters=DELTA,tol=1e-9,maxiter=10000,verbose=0]
44 GBP_LOOP3: HAK[doubleloop=0,clusters=LOOP,loopdepth=3,tol=1e-9,maxiter=10000,verbose=0]
45 GBP_LOOP4: HAK[doubleloop=0,clusters=LOOP,loopdepth=4,tol=1e-9,maxiter=10000,verbose=0]
46 GBP_LOOP6: HAK[doubleloop=0,clusters=LOOP,loopdepth=6,tol=1e-9,maxiter=10000,verbose=0]
47 GBP_LOOP8: HAK[doubleloop=0,clusters=LOOP,loopdepth=8,tol=1e-9,maxiter=10000,verbose=0]
48
49 HAK_MIN: HAK[doubleloop=1,clusters=MIN,tol=1e-9,maxiter=10000,verbose=0]
50 HAK_DELTA: HAK[doubleloop=1,clusters=DELTA,tol=1e-9,maxiter=10000,verbose=0]
51 HAK_LOOP3: HAK[doubleloop=1,clusters=LOOP,loopdepth=3,tol=1e-9,maxiter=10000,verbose=0]
52 HAK_LOOP4: HAK[doubleloop=1,clusters=LOOP,loopdepth=4,tol=1e-9,maxiter=10000,verbose=0]
53 HAK_LOOP5: HAK[doubleloop=1,clusters=LOOP,loopdepth=5,tol=1e-9,maxiter=10000,verbose=0]
54 HAK_LOOP6: HAK[doubleloop=1,clusters=LOOP,loopdepth=6,tol=1e-9,maxiter=10000,verbose=0]
55 HAK_LOOP8: HAK[doubleloop=1,clusters=LOOP,loopdepth=8,tol=1e-9,maxiter=10000,verbose=0]
56
57 #---------------------------------------------------------------
58 #EXACT
59 #
60 #
61 #} else if( method.substr(0,5) == "EXACT" ) { // EXACT
62 # // Look if the network is small enough to do brute-force exact method
63 # bool toolarge = false;
64 # size_t total_statespace = 1;
65 # for( size_t i = 0; i < fg.nrVars(); i++ ) {
66 # total_statespace *= fg.var(i).states();
67 # if( total_statespace > (1UL << 16) )
68 # toolarge = true;
69 # }
70 #
71 # if( !toolarge ) {
72 # Factor piet;
73 # for( size_t I = 0; I < fg.nrFactors(); I++ )
74 # piet *= fg.factor( I );
75 # for( size_t i = 0; i < fg.nrVars(); i++ )
76 # q.push_back(piet.marginal(fg.var(i)));
77 # time += toc() - tic;
78 # logZ = fg.ExactlogZ();
79 # } else
80 # throw "Network too large for EXACT method";