This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/CLPBN/clpbn/bp/examples/fail.yap

22 lines
440 B
Plaintext
Raw Normal View History

2012-03-31 23:27:37 +01:00
:- use_module(library(pfl)).
2012-04-03 17:12:58 +01:00
:- set_pfl_flag(solver,fove).
%:- set_pfl_flag(solver,bp), clpbn_horus:set_horus_flag(inf_alg,ve).
%:- set_pfl_flag(solver,bp), clpbn_horus:set_horus_flag(inf_alg,bp).
%:- set_pfl_flag(solver,bp), clpbn_horus:set_horus_flag(inf_alg,cbp).
2012-03-31 23:27:37 +01:00
t(ann).
t(dave).
% p(ann,t).
markov p(X)::[t,f] ; [0.1, 0.3] ; [t(X)].
2012-03-31 23:27:37 +01:00
% use standard Prolog queries: provide evidence first.
?- p(ann,t), p(ann,X).
2012-03-31 23:27:37 +01:00
% ?- p(ann,X).