Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix KeyError in CTGANSynthesizer when applying constraints #1718

Conversation

pvk-developer
Copy link
Member

@pvk-developer pvk-developer commented Dec 12, 2023

CU-86ayw5zbe
Resolves #1717

@pvk-developer pvk-developer requested a review from a team as a code owner December 12, 2023 19:25
@pvk-developer pvk-developer requested review from lajohn4747 and amontanez24 and removed request for a team December 12, 2023 19:25
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (211e24b) 97.08% compared to head (55e77e2) 97.08%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1718   +/-   ##
=======================================
  Coverage   97.08%   97.08%           
=======================================
  Files          48       48           
  Lines        4489     4489           
=======================================
  Hits         4358     4358           
  Misses        131      131           

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

@@ -154,7 +154,7 @@ def _estimate_num_columns(self, data):
num_generated_columns[column] = 11

elif sdtypes[column] in {'categorical', 'boolean'}:
if transformers[column] is None:
if transformers.get(column) is None:
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Can we do transformers.get(column, None) so it's explicit?

Copy link
Member Author

Choose a reason for hiding this comment

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

python always returns None.

Copy link
Contributor

@lajohn4747 lajohn4747 left a comment

Choose a reason for hiding this comment

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

lgtm, just a minor nit but feel free to merge

@pvk-developer pvk-developer merged commit d987178 into main Dec 13, 2023
74 checks passed
@pvk-developer pvk-developer deleted the issue-1717-KeyError-in-CTGANSynthesizer-when-applying-constraints branch December 13, 2023 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

KeyError in CTGANSynthesizer when applying FixedCombinations constraint
5 participants