Update CLP(BN) with Tiago's latest version of BP solver.

This commit is contained in:
Vitor Santos Costa
2011-05-17 12:00:33 +01:00
parent 2f964c9f51
commit b7379a67cc
46 changed files with 10961 additions and 491 deletions

View File

@@ -11,6 +11,7 @@
[clpbn_init_graph/1,
clpbn_init_solver/5,
clpbn_run_solver/4,
clpbn_finalize_solver/4,
clpbn_flag/2]).
:- use_module(library('clpbn/dists'),
@@ -53,6 +54,7 @@
em(Items, MaxError, MaxIts, Tables, Likelihood) :-
catch(init_em(Items, State),Error,handle_em(Error)),
em_loop(0, 0.0, State, MaxError, MaxIts, Likelihood, Tables),
clpbn_finalize_solver(State),
assert(em_found(Tables, Likelihood)),
fail.
% get rid of new random variables the easy way :)