evaluate | R Documentation |
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. The "user"
time to run the method (as measured by system.time
) is added
to metrics
by default unless one of the passed metrics has name
"time".
evaluate(object, metrics)
object |
object of class |
metrics |
a list of |
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.
generate_model
simulate_from_model
run_method
## Not run: # suppose previously we had run the following: sim <- new_simulation(name = "normal-example", label = "Normal Mean Estimation", dir = tempdir()) %>% generate_model(make_my_example_model, n = 20) %>% simulate_from_model(nsim = 50, index = 1:3) %>% run_method(my_example_method) # then we could add sim <- evaluate(sim, my_example_loss) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.