BoundaryAdherence
This metrics measures whether a synthetic column respects the minimum and maximum values of the real column. It returns the percentage of synthetic rows that adhere to the real boundaries.
Data Compatibility
Numerical : This metric is meant for numerical data
Datetime : This metric converts datetime values into numerical values
If you have missing values in the real data, then the metric will consider them valid in the synthetic data. Otherwise, they will be marked as out-of-bounds.
Score
(best) 1.0: All values in the synthetic data respect the min/max boundaries of the data
(worst) 0.0: No value in the synthetic data respects the min/max boundaries of the data data
The graph below shows an example of some fictional real and synthetic data (black and green, respectively) with BoundaryAdherence=0.912.

How does it work?
This metric computes the min and max values of the real column. Then, it computes the frequency of synthetic values that are in the [min, max] range. If there are missing values in the real data, then the metric will consider them as valid in the synthetic data; otherwise, missing values are considered out-of-bounds.
In some cases the allowable min/max range as well as the allowable missing values may be more expansive than what is present in the real data. This can happen when your real data is actually a smaller subset of the entire database. In this case you can override the allowable ranges by providing the range_min, range_max, and range_is_nullable parameters. If provided, these values will be used for checking the synthetic data rather than ranges derived from the real data.
Usage
To manually apply this metric, access the single_column module and use the compute method.
Parameters
(required)
real_data: A pandas.Series object with the column of real data(required)
synthetic_data: A pandas.Series object with the column of synthetic datarange_min: A float or datetime containing the absolute minimum value that the data can possibly have. This may be less than the minimum value present in the real training data. If provided, this value will be used instead of the minimum value from thereal_data.range_max: A float or datetime containing the absolute maximum value that the data can possible have. This may be greater than the maximum value present in the real training data. If provided, this value will be used instead of the maximum value from thereal_data.range_is_nullable: A boolean describing whether the column is allowed to be null. This can beTrueeven if the real training data does not have any missing values. If provided, this value will be used instead of computing it from thereal_data.
FAQs
Last updated
