Skip to contents

Transform a modeling task represented as a nested list to a single data frame

Usage

flatten_task(task)

Arguments

task

Nested list representing a modeling task, as one entry of the output of hubUtils::get_round_model_tasks(). Must have a target_end_date specification.

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.