Skip to content

Inline DP primitives and wire NumericalInitializer into DataGenerationV3#39

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

Inline DP primitives and wire NumericalInitializer into DataGenerationV3#39
copybara-service[bot] wants to merge 1 commit into
mainfrom
cl/934599319

Conversation

@copybara-service

Copy link
Copy Markdown

Inline DP primitives and wire NumericalInitializer into DataGenerationV3

Mechanical refactoring:

  • Inline _gaussian_histogram into DPGaussianHistogram.call and
    select_partitions_gaussian_thresholding into
    DPPartitionSelection.call.
  • Add DPGaussianCount primitive for noisy total count estimation.
  • Remove _validate_mechanism helper; inline the None check at each
    call site.
  • Update DataGenerationV3 to do two-phase initialization: categorical
    columns first (to estimate total), then numerical columns (passing
    estimated total for the heuristic measurement). When no categorical
    columns exist, use DPGaussianCount as fallback.

@copybara-service copybara-service Bot force-pushed the cl/934599319 branch 2 times, most recently from 9303fcc to 5f53ef0 Compare June 19, 2026 00:36
Mechanical refactoring:
- Inline _gaussian_histogram into DPGaussianHistogram.__call__ and
  select_partitions_gaussian_thresholding into
  DPPartitionSelection.__call__.
- Add DPGaussianCount primitive for noisy total count estimation.
- Remove _validate_mechanism helper; inline the None check at each
  call site.
- Update DataGenerationV3 to do two-phase initialization: categorical
  columns first (to estimate total), then numerical columns (passing
  estimated total for the heuristic measurement).  When no categorical
  columns exist, use DPGaussianCount as fallback.

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