Comments (4)
The reason is that mc_sample/4 has this signature
mc_sample(:Query:atom,+Samples:int,-Probability:float, Options:list) is det
so you are passing [H,V]
for the probability.
You should use
mc_sample_arg(is_long(H,G),10,[G,H],V).
from cplint.
Thanks for identifying why the query is false.
But why is there an error when running the query the second time?
from cplint.
Because the query asserts stuff in the database, if it fails midway it does not remove the temporary asserted stuff as it would if completed
from cplint.
Ah, OK now I understand.
Thanks.
from cplint.
Related Issues (20)
- make some prob fixed in par learning HOT 1
- Error "Exported procedure pita:randomize/2 is not defined" HOT 8
- Problems in pita.pl : yield bddem errors HOT 6
- Missing definition of add_decision_var and compute_best_strategy HOT 2
- Problems with master branch HOT 4
- Errors in examples HOT 2
- duel.pl in examples directory throws an error HOT 3
- Expensive use of findall/3 HOT 2
- Redundant (and costly) use of call/1 HOT 1
- Wrong erase/1 HOT 1
- Flexible probabilities with ProbLog syntax HOT 1
- call predicates outside of lpad scope
- Negative Probability Values and Probability Bounds HOT 1
- Bug in `mc_mh_sample/4` HOT 4
- Error while getting graphical result HOT 2
- Rules with Disjunction in the Body HOT 1
- Pascal distribution HOT 4
- Get proof trees for queries on probabilistic logic programs? HOT 5
- ?:: operator
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cplint.