Skip to content

Add InequalityConstraint for pairwise numerical ordering in dpsynth: - #225

Closed
copybara-service[bot] wants to merge 1 commit into
mainfrom
cl/992422764
Closed

copybara-service[bot] wants to merge 1 commit into
mainfrom
cl/992422764

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Add InequalityConstraint for pairwise numerical ordering in dpsynth:

  • Introduce dpsynth.constraints.InequalityConstraint(lower_attribute, upper_attribute, attribute_domains) to enforce lower_attribute <= upper_attribute across NumericalAttribute columns.
  • Mark strictly inverted discrete bin pairs as invalid in InequalityConstraint.to_mbi().
  • Tighten overlapping bin intervals row-wise during TabularCodec.decode() so decoded values satisfy lower_attribute <= upper_attribute under both midpoint and sample undiscretization.

@copybara-service
copybara-service Bot force-pushed the cl/992422764 branch 6 times, most recently from 4c2d877 to 8296819 Compare October 4, 2026 01:08
- Introduce dpsynth.constraints.InequalityConstraint(lower_attribute, upper_attribute, attribute_domains) to enforce lower_attribute <= upper_attribute across NumericalAttribute columns.
- Mark strictly inverted discrete bin pairs as invalid in InequalityConstraint.to_mbi().
- Tighten overlapping bin intervals row-wise during TabularCodec.decode() so decoded values satisfy lower_attribute <= upper_attribute under both midpoint and sample undiscretization.

PiperOrigin-RevId: 992422764
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

Successfully merging this pull request may close these issues.

1 participant