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

[Hotfix] Handle missing data #440

Merged
merged 3 commits into from
Dec 3, 2024
Merged

[Hotfix] Handle missing data #440

merged 3 commits into from
Dec 3, 2024

Conversation

fhenneke
Copy link
Collaborator

@fhenneke fhenneke commented Dec 3, 2024

This PR changes how missing data for reward targets is identified. It fixes a bug where missing data causes the script to crash.

The issue seems to come from a column without valid values being misidentified as float column and the missing value is encoded as NaN. This was not identified as missing data since it only checks for None.

With this PR, the pandas function isna is used to identify missing data.

A similar approach was used in #435.

Since local tests are still running, I created this as draft PR. I will remove the draft status once the local run is successful.

not just None but also NaN (in cases a column is misidentified as float
@fhenneke fhenneke requested a review from harisang December 3, 2024 09:01
@fhenneke fhenneke marked this pull request as ready for review December 3, 2024 10:40
@harisang harisang merged commit 613dda2 into main Dec 3, 2024
5 checks passed
@harisang harisang deleted the handle_missing_data branch December 3, 2024 18:21
@github-actions github-actions bot locked and limited conversation to collaborators Dec 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants