Skip to content

Fix: data_processor.py#11

Open
TinyClayMan wants to merge 1 commit into
NGO-Algorithm-Audit:mainfrom
TinyClayMan:main
Open

Fix: data_processor.py#11
TinyClayMan wants to merge 1 commit into
NGO-Algorithm-Audit:mainfrom
TinyClayMan:main

Conversation

@TinyClayMan

Copy link
Copy Markdown

Renamed sklearn.OneHotEncoder's sparse parameter to sparse_output in processor/data_processor.py, since it has been renamed in sklearn:1.2 (the latest is 1.9).

Otherwise _preprocess() crashes with OneHotEncoder.__init__() got an unexpected keyword argument 'sparse'.

This parameter is also used in metrics/privacy_metrics.py, but there it is named correctly: sparse_output.

'sparse' renamed to 'sparse_output' since scikit-learn:1.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant