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

Log columns in numerical_distributions which have been renamed #1235

Merged
merged 7 commits into from
Feb 8, 2023

Conversation

fealho
Copy link
Member

@fealho fealho commented Feb 6, 2023

Resolve #1212.

@fealho fealho changed the base branch from V1.0.0.dev to issue-1211-numerical-distribution February 6, 2023 03:51
@fealho fealho marked this pull request as ready for review February 6, 2023 22:24
@fealho fealho requested a review from a team as a code owner February 6, 2023 22:24
@fealho fealho requested review from pvk-developer and amontanez24 and removed request for a team February 6, 2023 22:24
Copy link
Contributor

@amontanez24 amontanez24 left a 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

Base automatically changed from issue-1211-numerical-distribution to V1.0.0.dev February 7, 2023 16:01
@fealho fealho force-pushed the issue-1234-log-numerical-distribution branch from cb52e4d to 8338307 Compare February 7, 2023 16:38
Comment on lines 185 to 191
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.'
)
Copy link
Contributor

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

@fealho fealho force-pushed the issue-1234-log-numerical-distribution branch from 7b9a513 to 7ac9005 Compare February 8, 2023 15:21
@fealho fealho requested a review from pvk-developer February 8, 2023 15:23
Copy link
Member

@pvk-developer pvk-developer left a comment

Choose a reason for hiding this comment

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

LGTM :shipit:

@fealho fealho merged commit 9324fcd into V1.0.0.dev Feb 8, 2023
@fealho fealho deleted the issue-1234-log-numerical-distribution branch February 8, 2023 15:41
amontanez24 pushed a commit that referenced this pull request Feb 17, 2023
* 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
amontanez24 pushed a commit that referenced this pull request Mar 23, 2023
* 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
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.

3 participants