Skip to content

Commit

Permalink
Update sklearn OHE
Browse files Browse the repository at this point in the history
  • Loading branch information
danielegrattarola committed Jan 21, 2024
1 parent 386bf6f commit bf60714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spektral/datasets/tudataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def _normalize(x, norm=None):
Apply one-hot encoding or z-score to a list of node features
"""
if norm == "ohe":
fnorm = OneHotEncoder(sparse=False, categories="auto")
fnorm = OneHotEncoder(sparse_output=False, categories="auto")
elif norm == "zscore":
fnorm = StandardScaler()
else:
Expand Down

0 comments on commit bf60714

Please sign in to comment.