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

Remove model_missing_values from ClusterBasedNormalizer call #310

Merged
merged 3 commits into from
Aug 17, 2023

Conversation

fealho
Copy link
Member

@fealho fealho commented Aug 16, 2023

In RDT's latest version model_missing_values is being deprecated.
Resolve SDV-1544

@fealho fealho marked this pull request as ready for review August 16, 2023 17:25
@fealho fealho requested a review from a team as a code owner August 16, 2023 17:25
@fealho fealho requested review from amontanez24 and frances-h and removed request for a team and amontanez24 August 16, 2023 17:25
@@ -46,7 +46,7 @@ def _fit_continuous(self, data):
A ``ColumnTransformInfo`` object.
"""
column_name = data.columns[0]
gm = ClusterBasedNormalizer(model_missing_values=True, max_clusters=min(len(data), 10))
gm = ClusterBasedNormalizer(max_clusters=min(len(data), 10))
Copy link
Contributor

Choose a reason for hiding this comment

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

to keep the behavior the same I think we have to change it to missing_value_generation='from_column'. The default is to fill with random nans

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.

LGTM!

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.

When using CTGANSynthesizer, there is a FutureWarning coming from RDT
3 participants