more CLP(BN) fixes

- support clpbn_table for an efficient implementation of deterministic tabling.
- corresponding changes to learning algorithm.
This commit is contained in:
Vitor Santos Costa
2008-11-18 11:29:59 +00:00
parent abf9691282
commit a64c1138df
8 changed files with 341 additions and 15 deletions

View File

@@ -12,6 +12,9 @@
:- use_module(library(clpbn),
[clpbn_flag/2]).
:- use_module(library('clpbn/table'),
[clpbn_reset_tables/0]).
:- use_module(library(matrix),
[matrix_agg_lines/3,
matrix_op_to_lines/4,
@@ -30,6 +33,7 @@ run_all([G|Gs]) :-
call(G),
run_all(Gs).
run_all(M:Gs) :-
clpbn_reset_tables,
run_all(Gs,M).
run_all([],_).