Skip to content

Add group_size parameter to calibrate and export dpsynth.with_group_size. - #230

Merged
copybara-service[bot] merged 1 commit into
mainfrom
cl/993839025
Oct 8, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
cl/993839025

Conversation

@copybara-service

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

Copy link
Copy Markdown

Add group_size parameter to calibrate and export dpsynth.with_group_size.

  • _calibration.calibrate now accepts group_size: int = 1 (replacing max_records_per_user) and lifts the candidate mechanism's dp_event via with_group_size(base, group_size) before applying poisson_sampling_prob.
  • Re-export with_group_size in dpsynth/__init__.py and clarify on CalibratedMechanism.dp_event that it always reports the base record-level, un-subsampled privacy guarantee.

@copybara-service
copybara-service Bot force-pushed the cl/993839025 branch 2 times, most recently from 18d117d to 9219193 Compare October 6, 2026 18:36
@copybara-service copybara-service Bot changed the title Remove max_records_per_user plumbing from configure in favor of with_group_size on dp_event. Use with_group_size in calibrate and stop forwarding max_records_per_user from top-level configs. Oct 6, 2026
@copybara-service
copybara-service Bot force-pushed the cl/993839025 branch 2 times, most recently from 1864e9b to 16dbdcd Compare October 7, 2026 00:35
@copybara-service copybara-service Bot changed the title Use with_group_size in calibrate and stop forwarding max_records_per_user from top-level configs. Use with_group_size in calibrate instead of forwarding max_records_per_user. Oct 7, 2026
@copybara-service
copybara-service Bot force-pushed the cl/993839025 branch 3 times, most recently from 08d5de0 to b2f5634 Compare October 7, 2026 07:15
@copybara-service copybara-service Bot changed the title Use with_group_size in calibrate instead of forwarding max_records_per_user. Add group_size parameter to calibrate and export dpsynth.with_group_size. Oct 7, 2026
@copybara-service
copybara-service Bot merged commit bc3798f into main Oct 8, 2026
4 checks passed
@copybara-service
copybara-service Bot deleted the cl/993839025 branch October 8, 2026 17:57
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.

0 participants