Given a Metric object or list of Metric objects,
this function evaluates an Output object according to these
metrics. The computed values of the metrics are saved to file.
evaluate_internal(
metrics,
dir = ".",
model_name,
index,
method_names,
out_loc = "out"
)a list of Metric objects or a single
Metric object
the directory where Model object was saved (by
generate_model)
the Model object's name attribute
the index of a computed Draws object. Can
alternately be a vector of such indices.
the Method objects' name attributes
as a character vector.
(optional) a length-1 character vector that gives location (relative to model's path) that method outputs are stored.
This function creates objects of class Evals and saves each to
file (at dir/model_name/<out_loc>/r<index>_<method_name>_evals.Rdata. Since
evaluating metrics is usually (in statistical methodological papers) fast,
parallel functionality has not been developed for the evaluation component.