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

Replace np.float with np.float64 in one_hot_encoder #1280

Merged
merged 1 commit into from May 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions tpot/builtins/one_hot_encoder.py
Expand Up @@ -158,7 +158,7 @@ class OneHotEncoder(BaseEstimator, TransformerMixin):

Non-categorical features are always stacked to the right of the matrix.

dtype : number type, default=np.float
dtype : number type, default=np.float64
Desired dtype of output.

sparse : boolean, default=True
Expand Down Expand Up @@ -213,7 +213,7 @@ class OneHotEncoder(BaseEstimator, TransformerMixin):
encoding of dictionary items or strings.
"""

def __init__(self, categorical_features='auto', dtype=np.float,
def __init__(self, categorical_features='auto', dtype=np.float64,
sparse=True, minimum_fraction=None, threshold=10):
self.categorical_features = categorical_features
self.dtype = dtype
Expand Down