Skip to contents

Processes the model fit, extracts samples and quantiles, and writes them to the appropriate directories.

Usage

write_model_outputs(
  fit,
  samples,
  summaries,
  output_dir,
  job_id,
  task_id,
  metadata = list(),
  diagnostics
)

Arguments

fit

An EpiNow2 fit object with posterior estimates.

samples

A data.table as returned by process_samples()

summaries

A data.table as returned by process_quantiles()

output_dir

A string specifying the directory where output, logs, and other pipeline artifacts will be saved. Defaults to the root directory ("/").

job_id

A string specifying the job.

task_id

A string specifying the task.

metadata

List. Additional metadata to be included in the output. The paths to the samples, summaries, and model output will be added to the metadata list.

diagnostics

A data.table as returned by extract_diagnostics()

Value

Invisible NULL. The function is called for its side effects.