-
Notifications
You must be signed in to change notification settings - Fork 11
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
Make negation normal form apply the propagated not statements in the leaf nodes #1133
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @riemanli)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @uakyol)
src/test/kotlin/org/wfanet/measurement/eventdataprovider/eventfiltration/validation/EventFilterValidatorTest.kt
line 408 at r1 (raw file):
val expectedNormalizedExpression = "(!(person.gender == 2) && true) && (!(person.age_group == 1) && " +
I know for non-operative node we always convert it to True
, ex: video.viewed_fraction > 0.25
. But for the case that the input expression is !(person.gender == 2 && video.viewed_fraction > 0.25)
, the code outputs (!(person.gender == 2) || true)
which is always evaluated as True
. Is that ok for the PBM?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @riemanli)
src/test/kotlin/org/wfanet/measurement/eventdataprovider/eventfiltration/validation/EventFilterValidatorTest.kt
line 408 at r1 (raw file):
Previously, riemanli (Rieman) wrote…
I know for non-operative node we always convert it to
True
, ex:video.viewed_fraction > 0.25
. But for the case that the input expression is!(person.gender == 2 && video.viewed_fraction > 0.25)
, the code outputs(!(person.gender == 2) || true)
which is always evaluated asTrue
. Is that ok for the PBM?
Yes, the design is done this way. Basically, worst case we will charge more buckets but never less than intended.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @uakyol)
src/test/kotlin/org/wfanet/measurement/eventdataprovider/eventfiltration/validation/EventFilterValidatorTest.kt
line 408 at r1 (raw file):
Previously, uakyol wrote…
Yes, the design is done this way. Basically, worst case we will charge more buckets but never less than intended.
Got it. Thanks for clarifying!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @uakyol)
This PR fixes this bug : #1132