Skip to content

Commit

Permalink
another onehotencoder keyword update
Browse files Browse the repository at this point in the history
  • Loading branch information
ggantos committed Feb 21, 2024
1 parent e22fcd3 commit f0e00a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ptype/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def preprocess_data(
)

if encoder_type == "onehot":
scalers["output_onehot"] = OneHotEncoder(sparse=False)
scalers["output_onehot"] = OneHotEncoder(sparse_output=False)
scaled_data["train_y"] = scalers["output_onehot"].fit_transform(
np.expand_dims(scaled_data["train_y"], 1)
)
Expand Down

0 comments on commit f0e00a0

Please sign in to comment.