❖ FixedNullCombinations
The FixedNullCombinations constraint enforces that the combinations between categorical columns are fixed. For other types of columns, it ensures that the combinations of null values are fixed. That is, no other permutations or shuffling is allowed other than what's already observed in the data.

Support Cases table contains entries for each support ticket filed by customers. Only resolved cases have a resolution date — aka the Resolution Status column determines whether or not the Resolution Date can be null.Constraint API
Create a FixedNullCombinations constraint.
Parameters:
(required)
column_names: A list of two or more columns whose combinations are fixed. These columns can be any sdtype. However, they cannot be listed as primary or foreign keys.table_name: A string with the name of the table to apply this to. Required if you have a multi-table dataset.fix_category_values: Whether to fix the values for categorical columns(default)
True: If there are categorical columns, fix the combinations that appear with their actual value. (For other types of columns, the combinations of null vs. non-null values are fixed instead.)False: For all column, only fix the combinations between null vs. non-null values. Allow there to be additional permutations within categorical values.
Do you want to apply this constraint to PII data? As part of its algorithm, this constraint will learn and remember some parameters in the synthesizer. While you can always share your synthetic data, we recommend caution when sharing out your synthesizer itself, as it will contain some of these parameters.
Usage
Apply the constraint to any SDV synthesizer. Then fit and sample as usual.
For more information about using predefined constraints, please see the Constraint-Augmented Generation tutorial.
FAQs
Last updated