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

Rename TableVectorizer parameters #947

Merged
merged 9 commits into from
Jun 21, 2024

Conversation

jeromedockes
Copy link
Member

rename the TableVectorizer parameters and corresponding attributes according to #671 and this morning's skrub meeting discussion:

cardinality_threshold → n_unique_threshold
high_cardinality_transformer → many_unique
low_cardinality_transformer → few_unique
datetime_transformer → datetime
numeric_transformer → numeric

I'm not 100% sure the new names are better esp. the "cardinality" replacement 🤔

@TheooJ
Copy link
Contributor

TheooJ commented Jun 17, 2024

I like the removal of transformer everywhere but I'm not sold on many_unique and few_unique yet

@jeromedockes jeromedockes added this to the 0.1.2 milestone Jun 18, 2024
@GaelVaroquaux
Copy link
Member

I started a twitter poll on this: https://x.com/skrub_data/status/1803508324941402198

@jeromedockes
Copy link
Member Author

it's a detail but I put many_unique without an S instead of many_uniques because the polars and pandas functions are called n_unique (no s) and I don't think 'unique' as a noun exists in english

@GaelVaroquaux
Copy link
Member

GaelVaroquaux commented Jun 19, 2024 via email

@GaelVaroquaux
Copy link
Member

Result of the twitter poll
image

@TheooJ
Copy link
Contributor

TheooJ commented Jun 21, 2024

I prefer this option too

@jeromedockes
Copy link
Member Author

ok then I'll update the PR to just drop the transformer part and keep 'cardinality'

Copy link
Contributor

@TheooJ TheooJ left a comment

Choose a reason for hiding this comment

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

Thanks @jeromedockes !

@TheooJ TheooJ merged commit a47c0a5 into skrub-data:main Jun 21, 2024
19 checks passed
@jeromedockes jeromedockes deleted the tv-parameter-names branch June 21, 2024 14:56
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.

None yet

3 participants