Implement postprocessing, MultiTableMechanism.__call__ and output materialization in the relational synthesizer: - #147
Merged
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
copybara-service
Bot
force-pushed
the
cl/967303603
branch
from
August 20, 2026 09:52
c33c059 to
b6c605c
Compare
…erialization in the relational synthesizer: 1. Decompression (_decompress_synthetic_datasets): - Probabilistically reverses categorical domain compression by sampling original category preimages from composite `<Other>` bins via `mbi.Dataset.decompress`. 2. Native TabularCodec Decoding (_decode_synthetic_tables): - Converts discrete integer bucket tokens back into continuous numerical floats (uniform interval dequantization) and categorical strings via `TabularCodec.decode()`. 3. Relational Key Assignment (_assign_relational_keys): - Generates synthetic integer surrogate primary keys (0..N-1) for parent tables. - Vectorizes child foreign key assignment by indexing parent primary keys via `parent_mappings` from Phase 2 copula unstacking, guaranteeing 100% referential integrity without hash joins. 4. End-to-End Orchestration (MultiTableMechanism.__call__): - Connectsdiscretization & initializers, cascading discrete relational hierarchy synthesis & copula matching, and postprocessing & key linkage into `MultiDataGenerationResult`. 5. Testing & Optimization: - Added unit tests for decompression, decoding, multi-tier PK/FK assignment, and empty child edge cases. - Added end-to-end integration test verifying calibrated `MultiTableMechanism` execution with differential privacy guarantees and referential integrity. - Add parameterized subtests covering all eager `MultiTableConfig.__post_init__` validation failures. 6. Eager MultiTableConfig.__post_init__ Validation: * Make `foreign_keys` a required argument with no default (`= ()` removed). * Enforce naming constraints PiperOrigin-RevId: 967697951
copybara-service
Bot
force-pushed
the
cl/967303603
branch
from
August 20, 2026 10:00
b6c605c to
e51cafd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement postprocessing, MultiTableMechanism.call and output materialization in the relational synthesizer:
Decompression (_decompress_synthetic_datasets):
<Other>bins viambi.Dataset.decompress.Native TabularCodec Decoding (_decode_synthetic_tables):
TabularCodec.decode().Relational Key Assignment (_assign_relational_keys):
parent_mappingsfrom Phase 2 copula unstacking, guaranteeing 100% referential integrity without hash joins.End-to-End Orchestration (MultiTableMechanism.call):
MultiDataGenerationResult.Testing & Optimization:
MultiTableMechanismexecution with differential privacy guarantees and referential integrity.MultiTableConfig.__post_init__validation failures.Eager MultiTableConfig.post_init Validation:
foreign_keysa required argument with no default (= ()removed).