Skip to content

Commit 2e77be3

Browse files
authored
Update data_processor.py
'sparse' renamed to 'sparse_output' since scikit-learn:1.2
1 parent 2f05ef3 commit 2e77be3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

synthpop/processor/data_processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def _preprocess(self, data: pd.DataFrame) -> pd.DataFrame:
6060
if n_unique < 10:
6161
encoder = LabelEncoder()
6262
elif n_unique < 50:
63-
encoder = OneHotEncoder(sparse=False, drop="first")
63+
encoder = OneHotEncoder(sparse_output=False, drop="first")
6464
else:
6565
# Frequency encoding
6666
value_counts = data[col].value_counts(normalize=True)

0 commit comments

Comments
 (0)