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/examples/comp_workshops.pfl

41 lines
551 B
Plaintext
Raw Normal View History

2012-05-23 14:56:01 +01:00
:- use_module(library(pfl)).
2012-12-11 23:06:09 +00:00
:- set_solver(hve).
%:- set_solver(ve).
%:- set_solver(jt).
2012-05-23 14:56:01 +01:00
%:- set_solver(bp).
%:- set_solver(cbp).
2012-12-11 23:06:09 +00:00
%:- set_solver(gibbs).
%:- set_solver(lve).
%:- set_solver(lkc).
%:- set_solver(lbp).
2012-05-23 14:56:01 +01:00
:- multifile c/2.
c(p1,w1).
c(p1,w2).
c(p1,w3).
c(p2,w1).
c(p2,w2).
c(p2,w3).
c(p3,w1).
c(p3,w2).
c(p3,w3).
c(p4,w1).
c(p4,w2).
c(p4,w3).
c(p5,w1).
c(p5,w2).
c(p5,w3).
2012-12-11 23:06:09 +00:00
markov attends(P), hot(W) ;
[0.2, 0.8, 0.8, 0.8] ;
[c(P,W)].
2012-05-23 14:56:01 +01:00
2012-12-11 23:06:09 +00:00
markov attends(P), series ;
[0.501, 0.499, 0.499, 0.499] ;
[c(P,_)].
2012-05-23 14:56:01 +01:00
2012-12-11 23:06:09 +00:00
?- series(X).
2012-05-23 14:56:01 +01:00