Transform a modeling task represented as a nested list to a single data frame
Source:R/generate_oracle_output.R
flatten_task.RdTransform a modeling task represented as a nested list to a single data frame
Arguments
- task
Nested list representing a modeling task, as one entry of the output of
hubUtils::get_round_model_tasks(). Must have atarget_end_datespecification.
Value
A tibble of all potentially
valid submittable outputs for the modeling task defined in task.
Each row of the table represents a single valid forecastable quantity
(e.g. "target X on target_end_date Y in location Z"),
plus a valid submittable output_type for forecasting that quantity.
If multiple output_types are accepted for a given valid forecastable
quantity, that quantity will be represented multiple times, with
one row for each valid associated output_type.