Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reuse encoders for ordinal variables [type:bug] #251

Closed
wants to merge 1 commit into from

reuse encoders

aeaaa34
Select commit
Loading
Failed to load commit list.
Closed

reuse encoders for ordinal variables [type:bug] #251

reuse encoders
aeaaa34
Select commit
Loading
Failed to load commit list.
Task list completed / task-list-completed succeeded Feb 22, 2024 in 0s

4 / 4 tasks completed

All tasks have been completed

Details

Required Tasks

Task Status
Only quick fix. Sklearn recommends against using LabelEncoder for features, I have not changed this. Incomplete
Results in error when there are unknown feature classes in e.g. X_syn (compared to X_gt). This is safer, though does mean we cannot evaluate easily on a very small real dataset. If we want to avoid this, we could use OrdinalEncoder instead, which allows ignore_unknown argument to be passed Incomplete
I have followed the Contribution Guidelines and Code of Conduct Completed
I have commented my code following the van der Schaar Lab Styleguide Completed
I have labelled this PR with the relevant Type labels Completed
My changes are covered by tests Completed