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

Combine Logical and Arithmetic Rules #254

Open
eriq-augustine opened this issue Oct 30, 2019 · 0 comments
Open

Combine Logical and Arithmetic Rules #254

eriq-augustine opened this issue Oct 30, 2019 · 0 comments

Comments

@eriq-augustine
Copy link
Member

Issue by eriq-augustine
Thursday Apr 25, 2019 at 17:47 GMT
Originally opened as eriq-augustine#207


Right now, the two types of rules are distinct and have their own grammar and infrastructure.
However, we should think about ways that we can combine them.
Arithmetic rules can sometimes be more expressive.

For example, what if we could use an aggregation (like mean) in a logical rule.

If x's friends are happy, x is happy as well:

1 / |y| * Friends(x, +y) & Happy(y) -> Happy(x)

Or using a blocking predicate in an arithmetic rule:

Block(x, b) & Block(y, b) & Something(x, y) <= 1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant