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
4. Transformers are not compatible with the sdtypes
Check the sdtypes and throw a warning in case of incompatibility.
ht.update_transformers(column_name_to_transformer={
'datetime_column': FrequencyEncoder(),
'numerical_column': BinaryEncoder()
})
Warning: Sometransformersyou've assigned are not compatible with the sdtypes. Use 'update_sdtypes' to update: ['datetime_column', 'numerical_column']
The text was updated successfully, but these errors were encountered:
Problem Description
When a user uses
update_transformers
, we should validate their input & throw appropriate warnings/errors.Expected behavior
Perform the following 4 validations when using this function.
1. Users attempts to use
update_transformers
after using fitThrow a warning, same as #466
2. Invalid column names
The column names must be in the config.
3. Invalid transformers
The user must provide either a transformer object or
None
.4. Transformers are not compatible with the sdtypes
Check the sdtypes and throw a warning in case of incompatibility.
The text was updated successfully, but these errors were encountered: