load_evals: Load one or more Evals objects from file.

View source: R/evaluate.R

load_evalsR Documentation

Load one or more Evals objects from file.

Description

After evaluate has been called, this function can be used to load one or more of the saved Evals object(s). If multiple indices are provided, these will be combined by index into a new single Evals object. If multiple methods are provided, a list of Evals objects will be returned.

Usage

load_evals(
  dir,
  model_name,
  index,
  method_names,
  metric_names = NULL,
  out_loc = "out",
  simulator.files = NULL
)

load_evals_from_ref(ref, metric_names = NULL)

Arguments

dir

the directory passed to generate_model)

model_name

the Model object's name

index

a vector of positive integers.

method_names

the name of one or more Method objects.

metric_names

(optional) a character vector of which elements of evals should be loaded. If NULL, then all elements are loaded.

out_loc

only needed if it was used in call to

simulator.files

if NULL, then getOption("simulator.files") will be used. run_method.

ref

an object of class EvalsRef

See Also

load_model load_draws as.data.frame.Evals


simulator documentation built on Feb. 16, 2023, 9:34 p.m.