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

Setting config on HyperTransformer does not read supported_sdtypes #560

Closed
pvk-developer opened this issue Oct 4, 2022 · 0 comments · Fixed by #562
Closed

Setting config on HyperTransformer does not read supported_sdtypes #560

pvk-developer opened this issue Oct 4, 2022 · 0 comments · Fixed by #562
Assignees
Labels
bug Something isn't working
Milestone

Comments

@pvk-developer
Copy link
Member

pvk-developer commented Oct 4, 2022

Error Description

Currently, when setting a config to the HyperTransformer if the sdtype is not the same as the result of get_input_sdtype, it fails. We should use get_supported_sdtypes instead.

Steps to reproduce

from rdt import HyperTransformer
from rdt.transformers import LabelEncoder

config = {
    'transformers': {
        'boolean_col': LabelEncoder(add_noise=True),
    },
    'sdtypes': {
        'boolean_col': 'boolean'
    }
}

ht = HyperTransformer()
ht.set_config(config)
Error: Some transformers you've assigned are not compatible with the sdtypes. Please change the following columns: ['boolean_col']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants