From c5a390460d645311e71a41c60dd3d1d640991b62 Mon Sep 17 00:00:00 2001 From: Tiago Gomes Date: Fri, 4 Jan 2013 19:48:31 +0000 Subject: [PATCH] Chanse use_logarithms default to true. Reasoning: - In small networks, the use of logarithms is not noticed in terms of performance. - In large networks, the chance to have a division by 0 is too high when not using logarithms. --- packages/CLPBN/clpbn/horus.yap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/CLPBN/clpbn/horus.yap b/packages/CLPBN/clpbn/horus.yap index 976d481b9..b43d51ded 100644 --- a/packages/CLPBN/clpbn/horus.yap +++ b/packages/CLPBN/clpbn/horus.yap @@ -36,8 +36,8 @@ set_horus_flag(K,V) :- cpp_set_horus_flag(K,V). :- cpp_set_horus_flag(verbosity, 0). -:- cpp_set_horus_flag(use_logarithms, false). -%:- cpp_set_horus_flag(use_logarithms, true). +%:- cpp_set_horus_flag(use_logarithms, false). +:- cpp_set_horus_flag(use_logarithms, true). %:- cpp_set_horus_flag(hve_elim_heuristic, sequential). %:- cpp_set_horus_flag(hve_elim_heuristic, min_neighbors).