Skip to content

Commit

Permalink
Merge pull request #38 from ai2es/gantos
Browse files Browse the repository at this point in the history
updating sklearn.onehotencoder keyword from sparse to sparse_output
  • Loading branch information
ggantos authored Feb 21, 2024
2 parents c49b2db + 0c30e8c commit e22fcd3
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 @@ -285,7 +285,7 @@ def preprocess_data(
scalers["input"] = scalar_obs[scaler_type]
scalers["output_label"] = LabelEncoder()
if encoder_type == "onehot":
scalers["output_onehot"] = OneHotEncoder(sparse=False)
scalers["output_onehot"] = OneHotEncoder(sparse_output=False)

if groupby and "quantile" not in scaler_type:
scaled_data["train_x"] = pd.DataFrame(
Expand Down

0 comments on commit e22fcd3

Please sign in to comment.