View source: R/greedy_search.R
| plot_obj_val_by_iter | R Documentation |
Plots the objective value by iteration
plot_obj_val_by_iter(res, runs = NULL)
res |
Results from a greedy search object |
runs |
A vector of run indices you would like to see plotted (default is to plot the first up to 9) |
Adam Kapelner
## Not run:
set.seed(1)
X = matrix(rnorm(20), nrow = 10)
ged = initGreedyExperimentalDesignObject(
X,
max_designs = 5,
num_cores = 1,
diagnostics = TRUE,
objective = "abs_sum_diff",
start = TRUE,
wait = TRUE,
verbose = FALSE
)
res = resultsGreedySearch(ged, max_vectors = 2)
plot_obj_val_by_iter(res)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.