Skip to contents

Raw output is saved to disk in the raw_output_dir specified in the eval config as serialized .rds files. Processed output is saved in a structured directory format in the output_dir specified in the eval config. See the save_table(), to_rds_with_suffix(), and get_raw_output_suffix() functions for more details.

Usage

eval_postprocess(
  config_index,
  eval_config_path,
  params_path,
  model,
  max_eval_data_days = 365
)

Arguments

config_index

Index of eval_config to evaluate

eval_config_path

Path to eval_config (created with write_eval_config)

params_path

Path to params.toml

model

model to postprocess. One of "hosp" and "ww".

max_eval_data_days

Maximum number of days of data to pull when creating evaluation dataset. Default 365.

Value

NULL, saving plots and tables to disk as side effects.

Details

The bulk of the postprocessing for successful model fits is handled by the postprocess_successful_fit() function, which is called within this function provided the target model fit was indeed successful, but there are some postprocessing tasks we wish to perform regardless of whether the model fit was successful.