Skip to content

Issue 2921 and 2920 overlaping check - #2938

Merged
nemanja-vujic merged 1 commit into
mainfrom
issue-2921-and-2920-overlaping-check
Aug 19, 2026
Merged

Issue 2921 and 2920 overlaping check#2938
nemanja-vujic merged 1 commit into
mainfrom
issue-2921-and-2920-overlaping-check

Conversation

@nemanja-vujic

Copy link
Copy Markdown
Contributor

Add utils.py with two functions that measure how much the synthetic data reuses values from the real data.

get_combination_overlap counts combinations of column values that appear in both datasets

get_pii_overlap does the same for the values of a single PII column.

Resolves #2921
Resolves #2920

@nemanja-vujic
nemanja-vujic requested a review from a team as a code owner August 4, 2026 16:34
@nemanja-vujic
nemanja-vujic requested review from sarahmish and removed request for a team August 4, 2026 16:34
@codecov

codecov Bot commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.07%. Comparing base (42de1f2) to head (aac84db).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2938   +/-   ##
=======================================
  Coverage   98.07%   98.07%           
=======================================
  Files          76       76           
  Lines        8666     8730   +64     
=======================================
+ Hits         8499     8562   +63     
- Misses        167      168    +1     
Flag Coverage Δ
integration 76.51% <73.43%> (-0.04%) ⬇️
unit 97.09% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nemanja-vujic nemanja-vujic self-assigned this Aug 4, 2026
Comment thread sdv/evaluation/utils.py
Comment thread sdv/evaluation/utils.py Outdated
Comment thread sdv/evaluation/utils.py Outdated
Comment thread sdv/evaluation/utils.py
real_values = real_data[table_name][column_names].copy()
synthetic_values = synthetic_data[table_name][column_names].copy()
for column_name in column_names:
real_values[column_name], synthetic_values[column_name] = _align_dtypes(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this step necessary given that all the columns will be casted as 'object' in _get_combinations?

Comment thread tests/integration/evaluation/test_utils.py Outdated
Comment thread tests/unit/evaluation/test_utils.py Outdated
@nemanja-vujic

Copy link
Copy Markdown
Contributor Author

@sarahmish all should be addressed in the previous commit

Comment thread tests/unit/evaluation/test_utils.py Outdated
@nemanja-vujic
nemanja-vujic force-pushed the issue-2921-and-2920-overlaping-check branch 2 times, most recently from f2607d6 to cb8d703 Compare August 18, 2026 16:12
@nemanja-vujic
nemanja-vujic force-pushed the issue-2921-and-2920-overlaping-check branch from cb8d703 to aac84db Compare August 18, 2026 16:56
@nemanja-vujic
nemanja-vujic merged commit e43540f into main Aug 19, 2026
47 checks passed
@nemanja-vujic
nemanja-vujic deleted the issue-2921-and-2920-overlaping-check branch August 19, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants