Skip to content

Pass workload at configuration time and introduce canonical Workload class. - #243

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

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

Conversation

@copybara-service

Copy link
Copy Markdown

Pass workload at configuration time and introduce canonical Workload class.

  • Add dpsynth.Workload (mapping cliques to positive float weights, normalizing unweighted sequences to 1.0) with schema validation (error on unknown attributes, warning on uncovered attributes) and YAML serialization support.
  • Move workload from DirectConfig.prespecified_marginal_queries, AIMConfig.workload, and SWIFTConfig.workload to configure(..., workload=...) and dpsynth.calibrate(..., workload=...).
  • Move supporting_cliques onto the calibrated discrete mechanisms.

…class.

- Add dpsynth.Workload (mapping cliques to positive float weights, normalizing unweighted sequences to 1.0) with schema validation (error on unknown attributes, warning on uncovered attributes) and YAML serialization support.
- Move workload from DirectConfig.prespecified_marginal_queries, AIMConfig.workload, and SWIFTConfig.workload to configure(..., workload=...) and dpsynth.calibrate(..., workload=...).
- Move supporting_cliques onto the calibrated discrete mechanisms.

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