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/fail2.yap

17 lines
207 B
Plaintext
Raw Normal View History

2012-03-22 11:33:24 +00:00
:- use_module(library(pfl)).
:- set_clpbn_flag(solver,fove).
t(ann).
t(dave).
bayes p(X)::[t,f] ; [0.1, 0.3] ; [t(X)].
2012-03-22 19:09:31 +00:00
% use standard Prolog queries: provide evidence first.
?- p(ann,f), p(ann,X).
2012-03-22 11:33:24 +00:00