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

Create internal R function to transform sample model-output data to scoringutils-compatible format #26

Open
2 tasks
bsweger opened this issue Apr 3, 2024 · 1 comment

Comments

@bsweger
Copy link
Collaborator

bsweger commented Apr 3, 2024

(formerly part of #12)

Create an internal data transformation function in hubEvals that will transform sample model-output data into a format that can be successfully converted to a scoringutils forecast object: https://epiforecasts.io/scoringutils/dev/reference/as_forecast.html.

This is not a user-facing function. Instead, it will be invoked by the publicly-accessible function described in #11.

A good source of test data for this function is the forecast_outputs data object in the hubExamples repo (filtering on output_type == sample)

https://github.com/Infectious-Disease-Modeling-Hubs/hubExamples/blob/main/data/forecast_outputs.rda

Definition of done:

  • A new R function called transform_sample_model_output
  • Corresponding unit test(s)
@bsweger
Copy link
Collaborator Author

bsweger commented Apr 3, 2024

Noting that this issue is blocked until the ongoing sample data work is complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

2 participants