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

Error when printing ClusterBasedNormalizer and GaussianNormalizer #441

Closed
npatki opened this issue Mar 18, 2022 · 0 comments
Closed

Error when printing ClusterBasedNormalizer and GaussianNormalizer #441

npatki opened this issue Mar 18, 2022 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@npatki
Copy link
Contributor

npatki commented Mar 18, 2022

Environment Details

  • RDT version: 1.0.0 (dev branch)

Error Description

I'm unable to print either of these transformers. Both are complaining that a parameter is missing (even if I end up specifying it)

Steps to reproduce

The ClusterBasedNormalizer:

>>> from rdt.transformers.numerical import ClusterBasedNormalizer
>>> cbe = ClusterBasedNormalizer()
>>> print(cbe)
AttributeError: 'ClusterBasedNormalizer' object has no attribute 'max_clusters'

>>> cbe = ClusterBasedNormalizer(max_clusters=10)
>>> print(cbe)
AttributeError: 'ClusterBasedNormalizer' object has no attribute 'max_clusters'

The GaussianNormalizer:

>>> from rdt.transformers.numerical import GaussianNormalizer
>>> gn = GaussianNormalizer()
>>> print(gn)
AttributeError: 'GaussianNormalizer' object has no attribute 'distribution'

>>> from rdt.transformers.numerical import GaussianNormalizer
>>> gn = GaussianNormalizer(distribution='parametric')
>>> print(gn)
AttributeError: 'GaussianNormalizer' object has no attribute 'distribution'
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

No branches or pull requests

3 participants