RegexFormatAdherence
This metric captures whether the synthetic data adheres to a specific Regex format.
Data Compatibility
ID : This metric is meant for ID columns (like primary and foreign keys) with specific Regex formats.
This metric ignores missing values.
Score
(best) 1.0: All values in the synthetic data respect the specified Regex format
(worst) 0.0: No value in the synthetic data respects the specified Regex format
How does it work?
This metrics checks each individual value of the synthetic data column to see if it follows the Regex format that is provided. The score is the proportion of synthetic data values that match the Regex format.
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 data(required)
regex_format: A string containing the Regex format to check against. For more information, see Python's re module.
FAQs
Last updated
