Commit Graph

5588 Commits

Author SHA1 Message Date
Tiago Gomes 1173b4c25b when expanding a counting formula, check if the expanded log vars are still counting log vars 2012-04-28 01:01:23 +01:00
Tiago Gomes 52f4aa0340 sort the parfactors by their parameters when printing 2012-04-27 19:10:22 +01:00
Tiago Gomes 20fc2c8dd1 add debug information to variable elimination 2012-04-27 14:48:48 +01:00
Tiago Gomes 9e1a649262 raising the paramaters to some power should happen after summing out, not before 2012-04-27 14:47:30 +01:00
Tiago Gomes 7599ccd5a1 don't print the paramaters if they are more than 32 2012-04-27 01:19:28 +01:00
Tiago Gomes af063dcda8 be more precise when calculating the cost of grounding a log var in a formula 2012-04-27 01:18:54 +01:00
Tiago Gomes 995a11be83 improvements in the way we align logical variables 2012-04-26 18:00:06 +01:00
Tiago Gomes cc09e77707 remove unnecessary variable 2012-04-26 00:58:06 +01:00
Tiago Gomes 689244a0d8 improve cbp by supporting factors connected to a single var two or more times 2012-04-26 00:54:06 +01:00
Tiago Gomes ad24a360ce Add a way to summout a dimension given a index instead of a variable id.
This is required for counting belief propagation.
2012-04-25 22:59:01 +01:00
Tiago Gomes fc362fe123 reorder the parameters instead of reordering variables 2012-04-23 22:57:04 +01:00
Tiago Gomes 0ebd6d6e06 improve constructor of VarNode 2012-04-23 22:40:36 +01:00
Tiago Gomes 3397f694fe sort the variable ids when printing all posterioris 2012-04-23 22:12:04 +01:00
Tiago Gomes d90fcd532b minor update 2012-04-21 17:21:54 +01:00
Tiago Gomes 8c689665a0 support setting flags in horus cli and fix a bug when ordering the variables 2012-04-21 17:14:19 +01:00
Tiago Gomes 085ebe1e96 check for overflows when performing expansion
case the factor size after expansion be bigger than an unsigned integer, abort the program
2012-04-20 17:16:10 +01:00
Tiago Gomes 0ffa409a80 fix a bug when expanding potential 2012-04-20 14:50:14 +01:00
Tiago Gomes 09697b8461 heuristic to improve results with fove 2012-04-19 18:37:15 +01:00
Tiago Gomes 2b7da4bc23 refactor the way we calculate the grounding cost 2012-04-19 17:59:45 +01:00
Tiago Gomes 661ce08961 check if the factor is not zero when choosing the elimination order 2012-04-19 12:08:27 +01:00
Tiago Gomes cd1e157019 sort the colors in the signature receveied from a factor (add std namespace) 2012-04-18 19:29:43 +01:00
Tiago Gomes 7c100c96bc sort the colors in the signature receveied from a factor 2012-04-18 19:29:11 +01:00
Tiago Gomes 862e90a36b fix bug in joining constraint trees 2012-04-18 18:14:15 +01:00
Tiago Gomes 61ee95d92a use logarithms to calculate the cost of each fove operator 2012-04-18 16:40:12 +01:00
Tiago Gomes 406276b62b add missing scripts 2012-04-18 13:53:34 +01:00
Tiago Gomes a7f57bea99 several optimizations on ConstraintTree 2012-04-18 03:05:01 +01:00
Tiago Gomes cd720497f8 update groups when shattering 2012-04-18 03:04:06 +01:00
Tiago Gomes bb5d02dbc0 minor updates 2012-04-18 03:03:29 +01:00
Tiago Gomes dacf6b4e57 update examples 2012-04-18 02:57:24 +01:00
Tiago Gomes d22b5a97fd add missing scripts 2012-04-18 02:52:31 +01:00
Tiago Gomes b7e9245f26 refactor and add more benchmarks scripts 2012-04-18 02:49:33 +01:00
Tiago Gomes d8e757f9ab improvements in the way factorials are computed 2012-04-18 02:46:38 +01:00
Tiago Gomes cd8714460e add a way of calculate factorials of large numbers 2012-04-17 20:24:40 +01:00
Tiago Gomes f02d0fb798 add more api to sorted vector implementation 2012-04-17 19:02:56 +01:00
Tiago Gomes 5e88510a7d use convenience function 2012-04-16 21:48:13 +01:00
Tiago Gomes 6ab5a4668b change align of some functions 2012-04-16 21:47:06 +01:00
Tiago Gomes dd0ae564ef adapt to changes in CFactorGraph 2012-04-16 21:45:52 +01:00
Tiago Gomes 779f4ea2ce fix debuging information and s/ds/range 2012-04-16 21:44:04 +01:00
Tiago Gomes 66353e67ec some refactorings 2012-04-16 21:42:14 +01:00
Tiago Gomes 0d5888e238 assign evidence to the pruned factor graph 2012-04-16 21:40:28 +01:00
Tiago Gomes b27500e93f add nrVarNodes and nrFacNodes 2012-04-16 19:29:55 +01:00
Tiago Gomes 6f7d2af718 add another sorted vector implementation 2012-04-15 21:51:12 +01:00
Tiago Gomes c32ad3de0a use a sorted vector to store the node childs 2012-04-15 21:44:27 +01:00
Tiago Gomes 5e7b660f44 use iterators instead off indices 2012-04-15 03:19:15 +01:00
Tiago Gomes 62fedf014b workaround garbage collector error 2012-04-14 18:00:12 +01:00
Tiago Gomes f1d2889eaa fix warning about uninitialized var 2012-04-14 17:59:04 +01:00
Tiago Gomes 401ad145a5 improve the way the factor graph is constructed from a set from factors 2012-04-14 17:57:24 +01:00
Tiago Gomes f6e3bb4481 don't assert when suming numbers with negative infinity 2012-04-13 23:12:12 +01:00
Tiago Gomes 24a5fe9c23 add typedef 2012-04-13 15:56:37 +01:00
Tiago Gomes 05ef8610f4 fix warning 2012-04-13 15:47:41 +01:00