Comments (6)
Noted! Working on a fix to #13 & #14 now.
FYI what I'm looking at is having available task id parameters as attributes of a hub-connection
S3 class object as they are effectively metadata on the metadata. the hub-connection
object will instead hold the possible values of each parameter as specified in the hubmeta
file.
from hubutils.
Couple of questions for you @elray1 :
- How likely is it that elements containing round specific metadata will not contain "round" in their names?
- There is an option to simplify task_id names per round when they are the same for each round e.g for the example referenced in this issue, task id names are being extracted as such:
task_id_names
#> $`round-1`
#> [1] "origin_date" "scenario_id" "location" "target" "horizon"
#>
#> $`round-2`
#> [1] "origin_date" "scenario_id" "location" "target" "horizon"
However, given they are all the same, we could opt to simplify this metadata (and hence the downstream validation steps) to a single vector of the unique values:
task_id_names
#> [1] "origin_date" "scenario_id" "location" "target" "horizon"
Let me know what you think about that option.
from hubutils.
It is expected that functions should handle a user wanting to ask for data over multiple round ids (across which task ids may well vary) in one go, correct?
In this case it would be really useful to have an example hubmeta file for that. Would modifying the one provide here to have one less or differing available task id in round-2
compared to round-1
be reasonable? Any suggestion on what a realistic tweak might be?
from hubutils.
All good questions. Here are some quick thoughts:
- I like the idea of simplifying the structure by removing the
round_id
level when that's possible - An easy way to get an example where
round-1
andround-2
have different task id variables would be to remove the"target"
entry for round 2 (note that it has only one possible value in round 2). A slightly more involved (and more interesting) way would be to add something like anage_group
variable with categories like["0-5", "6-18", "19-24", "25-64", "65+"]
from hubutils.
Quick follow up question. The fact that for the scenario hub metadata, we have round varying task ids implies that variation between rounds might be expected. Is this something we expect in the forecasting hub too at times? And does that just mean, if a forecasting hubs acquires further task ids, a metadata format with round varying task ids would be adopted going forward?
from hubutils.
I think that:
- it is possible that a hub will change its tasks over time, but this will be fairly rare. But note that the US forecast hub has added targets a couple of times. And we've thought about removing targets, though in the end we decided not to do that.
- if we did want to handle it, I think this could be handled within the existing metadata structure. For example, suppose the
round_id_variable
isorigin_date
. Themodel_tasks
array could contain two entries with different sets oforigin_date
s specified, corresponding to theorigin_date
s before/after the change in tasks.
from hubutils.
Related Issues (20)
- Export `json_datatypes` for use in hubValidations HOT 1
- Errors in flusight example hub quantile values data type HOT 2
- validate a hub's `model-metadata-schema.json` config file
- function to load model metadata HOT 6
- validate existence and correct formatting of `hub-config/model-metadata-schema.json`
- create man page for `model_out_tbl` class
- split this package into three packages for different intended audiences HOT 8
- `create_task_id()` for `origin_date` returns an error if required = Date object HOT 3
- Improve output message of connect_hub() HOT 1
- Update authors HOT 4
- add hard-coded global variables or datasets with common location codes HOT 4
- argument alignment for create_output_type_*() functions HOT 2
- minimum and maximums for output_types HOT 1
- problem specifying value_minimum and value_maximum in create_output_type_sample() HOT 2
- Upgrade Docs to hubStyle
- Replace ~ with \(x) in purrr calls that trigger object_usage_linter errors HOT 2
- [WIP] Package split questions HOT 2
- Add function like `get_task_ids_tbl`
- [ORG NAME CHANGE]: Update repo to hubverse-org organisation name HOT 1
- Function to get ordered levels of `output_type_id`s for pmf or categorical output types
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hubutils.