Skip to content

Rename TableVectorizer parameters - #947

Merged
TheooJ merged 9 commits into
skrub-data:mainfrom
jeromedockes:tv-parameter-names
Jun 21, 2024
Merged

TheooJ merged 9 commits into
skrub-data:mainfrom
jeromedockes:tv-parameter-names

Conversation

@jeromedockes

Copy link
Copy Markdown
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

TheooJ commented Jun 17, 2024

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Member

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

@jeromedockes

Copy link
Copy Markdown
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

GaelVaroquaux commented Jun 19, 2024 via email

Copy link
Copy Markdown
Member

@GaelVaroquaux

Copy link
Copy Markdown
Member

Result of the twitter poll
image

@TheooJ

TheooJ commented Jun 21, 2024

Copy link
Copy Markdown
Contributor

I prefer this option too

@jeromedockes

Copy link
Copy Markdown
Member Author

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

@TheooJ TheooJ left a comment

Copy link
Copy Markdown
Contributor

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
@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.

3 participants