-
Notifications
You must be signed in to change notification settings - Fork 3
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
Null point estimate output type IDs in configs instead of NA
s
#109
Comments
I'm totally onboard with this! 💯 The non-interlanguage compatibility of I think we could easily even go one step cleaner and rather than a Other areas that would require work would be:
Overall, I think it's much cleaner, clearer and would make it much easier to communicate and explain the expectations for point estimate output type ids so worth the effort! |
I basically agree conceptually with the arguments. Could someone explain what a change like this would mean for what a submission file would look like? I.e. what would be included (if anything) in the output_type_id column when output_type="mean"? What would the implications be for existing hubs that might try to migrate to this new schema format? E.g. are we at an early enough stage with the variant hub that we could just make this change and edit a few files and it would be fine? Does FluSight solicit mean forecasts and would they be stuck with schema 3.x? |
Nothing should really change for submissions, either current or future. We are still using R to validate so any missing values used should translate to So from my perspective, if R is interpreting the values as I've added some suggestions for testing in hubverse-org/hubDocs#198 |
@zkamvar posted the following note on #103
Something that was brought up in response to reichlab/variant-nowcast-hub#117 (comment) is that the
"NA"
is a bit confusing because it sure looks like a character, but when we expand the grid theoutput_type_id
columns becomeNA
(which is an intentional move by Ooms described in section 2.1.1 of the JSONlite package paper)Now that we are using
is_required
for point estimate types, we might be able to take this opportunity to set therequired
property to a single elementnull
array. This will have exactly the same result as the"NA"
array, but with the following advantages:null
is a concept that even JSON can understandThis is what I think it would look like in the schema:
Demo
Here's a demo that shows that
["NA"]
and[null]
are equivalent by modifying a tasks.json file and reading them in with jsonliteCreated on 2024-10-18 with reprex v2.1.1
Originally posted by @zkamvar in #103 (comment)
The text was updated successfully, but these errors were encountered: