add_metrics_to_dataframe: Fill one row of data.frame df with this site's metrics

Description Usage Arguments Value

View source: R/evaluation.R

Description

CRPS, interval width, and MAE are normalized by the site's AC power rating.

Usage

1
2
add_metrics_to_dataframe(df, forecast_runs, issue_times, telemetry, df_idx,
  max_power, runtime, metadata, aggregate_function)

Arguments

df

A data frame to fill with metrics for all the sites

forecast_runs

A list of ts_forecast objects

issue_times

A list of timestamps, same length as forecast_runs

telemetry

Vector of telemetry

df_idx

Index of data frame row (likely index of site)

max_power

Site's AC rating or maximum load power

runtime

A value in seconds

metadata

A data.frame of forecast parameters

aggregate_function

A list of functions (mean or sum) for how to aggregate the metrics over the forecast runs

Value

data.frame df with a row added for this site


kdayday/ppnwp documentation built on Oct. 8, 2020, 8:47 a.m.