-
Notifications
You must be signed in to change notification settings - Fork 0
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
write function that translates from hubverse format to scoringutils-ready format #11
Comments
From Sam, see also:
Look here for inspiration about how to set this up. |
I'm happy to have a first pass at this if you would like to assign me? Probably next week. |
That would be great! I'll assign you now. Just to add some updates to what's in the issue statement above, the package already has three non-exported functions that are related to this: |
My expectation would be this |
A slight wrinkle is the differences in approach to defining output type. i.e. here Line 78 in 040d000
as I think the data format here is a standard data frame this isn't going to be play nicely with our s3 dispatch unless a special hubeval or other hub format class is available. There are obvious pluses and minuses to having that in the ecosystem but it seems like maybe the question of a hub format class is not for here? |
We have the The current setup for hubEvals is that we accept a standard data frame and cast it to So I think in principle this could work with a setup using S3 methods because we have an appropriate class to use, but it will require a bit of reshuffling to do that conversion to As an aside, the |
Nice makes sense.
Yes this is slightly different to how we have been thinking about things (as we have subclasses) so might take a bit of fiddling as well. I'll take a look at the code properly and propose some kind of plan here next week. |
Create a user-accessible function to handle transforming model-output data to a scoringutil
forecast
object: https://epiforecasts.io/scoringutils/dev/reference/as_forecast.htmlEssentially, the goal of this function is to ensure that model output data is converted to the corresponding scoringutil format by calling the appropriate internal transformation function (these functions are defined in #22, #23, #24, #25, #26).
For example, model output data of output_type
median
would be passed to the internal hubEvalstransform_point_model_output
function.This function should be exported for a user who wants more direct, custom access to scoringutils functionality, but also will be called in
hubEvals::score_mdl_output()
(#13)migrated from epiforecasts/scoringutils#605
Definition of done:
The text was updated successfully, but these errors were encountered: