Some improvements to jtree and regiongraph and started work on regiongraph unit tests
[libdai.git] / tests / aliases.conf
index 2f9b582..75c4d80 100644 (file)
@@ -1,3 +1,16 @@
+# This file contains reasonable default settings for various inference
+# algorithms in libDAI. Each non-empty line should either be a comment
+# (starting with #) or contain an alias definition in the format
+#
+# alias:    name[key1=val1,key2=val2,...,keyn=valn]
+#
+# where name should be a valid libDAI algorithm name, and the list of
+# its properties (between rectangular brackets) consists of key=value
+# pairs, seperated by spaces. This defines 'alias' as a shortcut for
+# the rest of the line (more precisely, the contents to the right of 
+# the colon and possible whitespace).
+
+
 # --- EXACT -------------------
 
 EXACT:                          EXACT[verbose=0]
@@ -22,6 +35,14 @@ MP_SEQRND_LOG:                  BP[updates=SEQRND,tol=1e-9,maxiter=10000,logdoma
 MP_SEQMAX_LOG:                  BP[updates=SEQMAX,tol=1e-9,maxiter=10000,logdomain=1,inference=MAXPROD]
 MP_PARALL_LOG:                  BP[updates=PARALL,tol=1e-9,maxiter=10000,logdomain=1,inference=MAXPROD]
 
+# --- FBP ---------------------
+
+FBP:                            FBP[updates=SEQFIX,tol=1e-9,maxiter=10000,logdomain=0]
+
+# --- TRWBP -------------------
+
+TRWBP:                          TRWBP[updates=SEQFIX,tol=1e-9,maxiter=10000,logdomain=0,nrtrees=0]
+
 # --- JTREE -------------------
 
 JTREE_HUGIN:                    JTREE[updates=HUGIN,verbose=0]
@@ -51,6 +72,7 @@ MR_EXACT_LINEAR:                MR[updates=LINEAR,inits=EXACT,verbose=0,tol=1e-9
 # --- HAK ---------------------
 
 GBP_MIN:                        HAK[doubleloop=0,clusters=MIN,init=UNIFORM,tol=1e-9,maxiter=10000,verbose=0]
+GBP_BETHE:                      HAK[doubleloop=0,clusters=BETHE,init=UNIFORM,tol=1e-9,maxiter=10000,verbose=0]
 GBP_DELTA:                      HAK[doubleloop=0,clusters=DELTA,init=UNIFORM,tol=1e-9,maxiter=10000,verbose=0]
 GBP_LOOP3:                      HAK[doubleloop=0,clusters=LOOP,init=UNIFORM,loopdepth=3,tol=1e-9,maxiter=10000,verbose=0]
 GBP_LOOP4:                      HAK[doubleloop=0,clusters=LOOP,init=UNIFORM,loopdepth=4,tol=1e-9,maxiter=10000,verbose=0]
@@ -60,6 +82,7 @@ GBP_LOOP7:                      HAK[doubleloop=0,clusters=LOOP,init=UNIFORM,loop
 GBP_LOOP8:                      HAK[doubleloop=0,clusters=LOOP,init=UNIFORM,loopdepth=8,tol=1e-9,maxiter=10000,verbose=0]
 
 HAK_MIN:                        HAK[doubleloop=1,clusters=MIN,init=UNIFORM,tol=1e-9,maxiter=10000,verbose=0]
+HAK_BETHE:                      HAK[doubleloop=1,clusters=BETHE,init=UNIFORM,tol=1e-9,maxiter=10000,verbose=0]
 HAK_DELTA:                      HAK[doubleloop=1,clusters=DELTA,init=UNIFORM,tol=1e-9,maxiter=10000,verbose=0]
 HAK_LOOP3:                      HAK[doubleloop=1,clusters=LOOP,init=UNIFORM,loopdepth=3,tol=1e-9,maxiter=10000,verbose=0]
 HAK_LOOP4:                      HAK[doubleloop=1,clusters=LOOP,init=UNIFORM,loopdepth=4,tol=1e-9,maxiter=10000,verbose=0]
@@ -97,16 +120,16 @@ LCBP:                           LCBP_FULLCAVin_SEQRND
 
 # --- GIBBS -------------------
 
-GIBBS:                          GIBBS[iters=1000,verbose=0]
-GIBBS_1e1:                      GIBBS[iters=10]
-GIBBS_1e2:                      GIBBS[iters=100]
-GIBBS_1e3:                      GIBBS[iters=1000]
-GIBBS_1e4:                      GIBBS[iters=10000]
-GIBBS_1e5:                      GIBBS[iters=100000]
-GIBBS_1e6:                      GIBBS[iters=1000000]
-GIBBS_1e7:                      GIBBS[iters=10000000]
-GIBBS_1e8:                      GIBBS[iters=100000000]
-GIBBS_1e9:                      GIBBS[iters=1000000000]
+GIBBS:                          GIBBS[iters=1000,burnin=100,verbose=0]
+GIBBS_1e1:                      GIBBS[iters=10,burnin=1,verbose=0]
+GIBBS_1e2:                      GIBBS[iters=100,burnin=10,verbose=0]
+GIBBS_1e3:                      GIBBS[iters=1000,burnin=100,verbose=0]
+GIBBS_1e4:                      GIBBS[iters=10000,burnin=1000,verbose=0]
+GIBBS_1e5:                      GIBBS[iters=100000,burnin=10000,verbose=0]
+GIBBS_1e6:                      GIBBS[iters=1000000,burnin=100000,verbose=0]
+GIBBS_1e7:                      GIBBS[iters=10000000,burnin=100000,verbose=0]
+GIBBS_1e8:                      GIBBS[iters=100000000,burnin=100000,verbose=0]
+GIBBS_1e9:                      GIBBS[iters=1000000000,burnin=100000,verbose=0]
 
 # --- CBP ---------------------