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

Are constraints now supported in Problog? #110

Closed
deepalikholkar opened this issue Jan 23, 2024 · 5 comments
Closed

Are constraints now supported in Problog? #110

deepalikholkar opened this issue Jan 23, 2024 · 5 comments

Comments

@deepalikholkar
Copy link

Saw the class Constraint defined in the Problog 2.2 documentation. Has support for this been added..

@rmanhaeve
Copy link
Contributor

These can be used for adding propositional constraints programmatically, but it is not a feature that should be used directly. Depending on what type of constraint you want, you could use evidence to encode it.

@deepalikholkar
Copy link
Author

Thank you for your response! Actually we wanted to encode constraints not on ground facts but as conditions that should not evaluate to true such as headless rules in ASP. We have now encoded them as Problog rules and throw an error when the rule evaluates to true.

@deepalikholkar
Copy link
Author

deepalikholkar commented Jan 29, 2024

We have been experimenting with DeepProblog for the past few months and it's truly awesome work - the concept and mechanism of using rules to compute and feed back gradients into the neural net

@rmanhaeve
Copy link
Contributor

Hi.

If your rules can be encoded as ProbLog rules you can try the following:

constraint :- ....
constraint :- ....

evidence(constraint, false).

Does this help?

@deepalikholkar
Copy link
Author

Hi.

If your rules can be encoded as ProbLog rules you can try the following:

constraint :- ....
constraint :- ....

evidence(constraint, false).

Does this help?

Thanks very much for your response. This should help! Will try it out

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

2 participants