-
Notifications
You must be signed in to change notification settings - Fork 28
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 column_name and null generation #337
Fix column_name and null generation #337
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.
let's validate tests
Co-authored-by: Taylor Turner <[email protected]>
35d055f
to
8d65506
Compare
@@ -0,0 +1,14 @@ | |||
"""Contains a random Null generator.""" |
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 function is used to generate fully null columns
|
||
col_["rng"] = self.rng | ||
col_["num_rows"] = num_samples | ||
if generator_name: |
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 is needed in place of the removed warning, as we account for a fully nulled column
synthetic_data/generators.py
Outdated
else: | ||
generator_name = "null_generator" |
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.
might do an elif here for readability
else: | ||
if col_["order"] is not None: | ||
if (not generator_name == "null_generator") and col_[ | ||
"order" | ||
] is not None: |
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.
just an else here (only way it gets is if generator_name
not in the dictionary keys) and just logging.warning
)
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.
The warning above is not needed anymore just because of the null columns now being accounted for.
c84793c
to
a2ab09b
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
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
No description provided.