Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question: predicating on probability values #107

Closed
alebarna opened this issue Dec 1, 2023 · 2 comments
Closed

question: predicating on probability values #107

alebarna opened this issue Dec 1, 2023 · 2 comments

Comments

@alebarna
Copy link

alebarna commented Dec 1, 2023

Dear, I’m new to ProbLog and I’m currently “playing” with Bayesian Networks enconding.
My question is as follows: once I get the probabilities computed for a certain atom (e.g. query(earthquake) results in a value of 0.98), is there a way to add clauses in the program that make use of them, e.g., if the probability of earthquake is greater than a certain value then this and that are true? This last form of reasoning would be purely classical, no need of probabilities and probabilistic engine, just pure Prolog would be enough. The issue I have is that I do not know how to re-call these probability values to write rules that have them as arguments, nor whether this is really possible. Thanks in advance! .aLessandro

@rmanhaeve
Copy link
Contributor

This would classify as a sub-query, where you use the probability of an atom inside of the program itself. See this example for more info: https://dtai.cs.kuleuven.be/problog/tutorial/various/05_numberguessing.html

@alebarna
Copy link
Author

alebarna commented Dec 1, 2023

thank you very much for your quick suggestion! I’ll work on that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants