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

get_transformer_tree_yaml fails #389

Closed
amontanez24 opened this issue Feb 10, 2022 · 0 comments · Fixed by #409
Closed

get_transformer_tree_yaml fails #389

amontanez24 opened this issue Feb 10, 2022 · 0 comments · Fixed by #409
Assignees
Labels
bug Something isn't working
Milestone

Comments

@amontanez24
Copy link
Contributor

amontanez24 commented Feb 10, 2022

Environment Details

Please indicate the following details about the environment in which you found the bug:

  • RDT version: Any
  • Python version: Any
  • Operating System: Any

Error Description

The get_transformer_tree_yaml method raises the following error:

RepresenterError: ('cannot represent an object', defaultdict(<class 'dict'>, {'0_int': {'transformer': 'NumericalTransformer', 'outputs': ['0_int.value', '0_int.is_null']}, '1_float': {'transformer': 'NumericalTransformer', 'outputs': ['1_float.value', '1_float.is_null']}, '2_str': {'transformer': 'CategoricalTransformer', 'outputs': ['2_str.value']}, '3_datetime': {'transformer': 'DatetimeTransformer', 'outputs': ['3_datetime.value', '3_datetime.is_null']}}))

Also consider adding a NotFittedError to this method as well.

Steps to reproduce

from rdt import HyperTransformer
from rdt import get_demo

data = get_demo()
ht = HyperTransformer()
ht.fit_transform(data)
ht.get_transformer_tree_yaml()
@amontanez24 amontanez24 added the bug Something isn't working label Feb 10, 2022
@amontanez24 amontanez24 added this to the 0.6.4 milestone Feb 23, 2022
@amontanez24 amontanez24 self-assigned this Mar 4, 2022
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.

1 participant