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

tpot2.builtin_modules.ColumnOneHotEncoder do not define 'strategy' #163

Open
yzy945 opened this issue Dec 21, 2024 · 1 comment
Open

tpot2.builtin_modules.ColumnOneHotEncoder do not define 'strategy' #163

yzy945 opened this issue Dec 21, 2024 · 1 comment

Comments

@yzy945
Copy link

yzy945 commented Dec 21, 2024

tpot2/tpot2/tpot_estimator /estimator.py
line 584:
pipeline_steps.append(("ColumnOneHotEncoder", tpot2.builtin_modules.ColumnOneHotEncoder(self.categorical_features, strategy='most_frequent')))

but in tpot2.builtin_modules.ColumnOneHotEncoder do not define 'strategy'

class ColumnOneHotEncoder(BaseEstimator, TransformerMixin):
def init(self, columns='auto', drop=None, handle_unknown='infrequent_if_exist', sparse_output=False, min_frequency=None,max_categories=None)

@perib
Copy link
Collaborator

perib commented Jan 3, 2025

thanks for identifying this bug, I submitted a PR to address this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants