Giter Club home page Giter Club logo

Comments (6)

annakrystalli avatar annakrystalli commented on July 30, 2024

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.

annakrystalli avatar annakrystalli commented on July 30, 2024

Couple of questions for you @elray1 :

  1. How likely is it that elements containing round specific metadata will not contain "round" in their names?
  2. 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.

annakrystalli avatar annakrystalli commented on July 30, 2024

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.

elray1 avatar elray1 commented on July 30, 2024

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 and round-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 an age_group variable with categories like ["0-5", "6-18", "19-24", "25-64", "65+"]

from hubutils.

annakrystalli avatar annakrystalli commented on July 30, 2024

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.

elray1 avatar elray1 commented on July 30, 2024

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 is origin_date. The model_tasks array could contain two entries with different sets of origin_dates specified, corresponding to the origin_dates before/after the change in tasks.

from hubutils.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.