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

Add error message for invalid label schema #95

Open
Oufattole opened this issue Oct 21, 2024 · 0 comments
Open

Add error message for invalid label schema #95

Oufattole opened this issue Oct 21, 2024 · 0 comments

Comments

@Oufattole
Copy link
Collaborator

When labels don't follow the meds label-schema, users currently receive an unhelpful error message:

Clearing lock due to Exception '<=' not supported between instances of 'int' and 'NoneType' at ...

This occurs in the task caching stage when prediction_time in a task is null.

Proposed solution:

  1. Add a check to validate that labels conform to the meds-schema
  2. Implement a clear error message when invalid labels are detected

Specifically, the check and error should be right after this line where labels are read.

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

No branches or pull requests

1 participant