You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>>fromtransformers.categoricalimportFrequencyEncoder# (default) No noise>>>fe=FrequencyEncoder()
>>>fe=FrequencyEncoder(add_noise=True)
>>>fe.fit(data, column='categorical_column')
# if the transform contains new categories unseen during fit>>>fe.transform(data_new_categories)
Warning: Thedatacontainsnewcategories ('hello', 'world') thatwerenotintheoriginaldata.
Assigningthemrandomvalues. Ifyouwanttomodelnewcategories, pleasefitthetransformeragainwiththenewdata.
# reverse transform: always clip without warning (ie never use modulo)>>>fe.reverse_transform(model_data)
The text was updated successfully, but these errors were encountered:
Problem Description
Let's update
CategoricalTransformer
to make it more user friendly.Expected behavior
Name:
FrequencyEncoder
Functionality:
columns
(see Renamecolumns
parameter infit
for each individual transformer #376 )fuzzy
toadd_noise
clip
The text was updated successfully, but these errors were encountered: