Range
The Range constraint enforces that for all rows, the value of one of the columns is bounded by the values in the other two columns.
Constraint API
Create a Range
constraint.
(required)
low_column_name
: The name of the column that contains the lowest value. This must be a numerical or datetime column.(required)
middle_column_name
: The name of the column that must be between the low and the high columns. This must be a numerical or datetime column.(required)
high_column_name
: The name of the column that contains the highest value. This must be a numerical or datetime column.strict_boundaries
: Whether the boundaries between each of the comparisons are strict(default)
True
: The middle column must be strictly greater than the low column and strictly less than the high column.False
: The middle column must be greater than or equal to the low column and less than or equal to the high column
table_name
: A string with the name of the table to apply this to. Required if you have a multi-table dataset.
Usage
Apply the constraint to any SDV synthesizer. Then fit and sample as usual.
FAQs
Last updated