-
Notifications
You must be signed in to change notification settings - Fork 322
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
Log columns in numerical_distributions
which have been renamed
#1235
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good! One thing I noticed for both this PR and #1234 is that there are very similar validations being done in both CopulaGANSynthesizer
and CopulasSynthesizer
. In the future maybe we should consider places where validation is repetitive and think about pulling that out into it's own module or something like that
cb52e4d
to
8338307
Compare
sdv/single_table/copulagan.py
Outdated
unseen_columns = self._numerical_distributions.keys() - set(processed_data.columns) | ||
for column in unseen_columns: | ||
LOGGER.info( | ||
f"Requested distribution '{self.numerical_distributions[column]}' " | ||
f"cannot be applied to column '{column}' because it no longer " | ||
'exists after preprocessing.' | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can move this validation out to utils and pass the logger
7b9a513
to
7ac9005
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Add code * Add LOGGER, weird bug * Fix last dict->set * Add bug fix * Fix bugs + add tests * Remove _validates added during rebase * Move logger to utils
* Add code * Add LOGGER, weird bug * Fix last dict->set * Add bug fix * Fix bugs + add tests * Remove _validates added during rebase * Move logger to utils
Resolve #1212.