Skip to contents

Join hubverse oracle output to a hubverse forecast table for scoring.

Usage

with_hubverse_oracle_output(hubverse_table, oracle_output_table)

Arguments

hubverse_table

Hubverse format table of forecasts

oracle_output_table

Oracle output table to join to the forecast table.

Value

The joined table, as a tibble.

Examples


with_hubverse_oracle_output(hubExamples::forecast_outputs,
  hubExamples::forecast_oracle_output)
#> # A tibble: 10,224 × 10
#>    model_id   reference_date target horizon location target_end_date output_type
#>    <chr>      <date>         <chr>    <int> <chr>    <date>          <chr>      
#>  1 Flusight-… 2022-11-19     wk fl…       0 25       2022-11-19      pmf        
#>  2 Flusight-… 2022-11-19     wk fl…       0 25       2022-11-19      pmf        
#>  3 Flusight-… 2022-11-19     wk fl…       0 25       2022-11-19      pmf        
#>  4 Flusight-… 2022-11-19     wk fl…       0 25       2022-11-19      pmf        
#>  5 Flusight-… 2022-11-19     wk fl…       1 25       2022-11-26      pmf        
#>  6 Flusight-… 2022-11-19     wk fl…       1 25       2022-11-26      pmf        
#>  7 Flusight-… 2022-11-19     wk fl…       1 25       2022-11-26      pmf        
#>  8 Flusight-… 2022-11-19     wk fl…       1 25       2022-11-26      pmf        
#>  9 Flusight-… 2022-11-19     wk fl…       2 25       2022-12-03      pmf        
#> 10 Flusight-… 2022-11-19     wk fl…       2 25       2022-12-03      pmf        
#> # ℹ 10,214 more rows
#> # ℹ 3 more variables: output_type_id <chr>, value <dbl>, oracle_value <dbl>