Description Format Value Methods Public fields Methods Examples
Class providing object with methods for adapt.concept2.sFFLHD.R6
Class providing object with methods for adapt.concept2.sFFLHD.R6
R6Class object.
Object of R6Class with methods for running a
comparison of adaptive experiments. You can set which parameters
to use, and it will run experiments using all combinations.
This object is used to run experiments and examine and plot output.
For source code, go to https://github.com/CollinErickson/DOE-Code
new(X, Z, corr="Gauss", verbose=0, separable=T,
useC=F,useGrad=T,
parallel=T, nug.est=T, ...)This method is used to create object
of this class with X and Z as the data.
update(Xnew=NULL, Znew=NULL, Xall=NULL, Zall=NULL,
restarts = 5,
param_update = T, nug.update = self$nug.est)This method updates the model, adding new data if given, then running optimization again.
Lbatch size
batchesNumber of batches to run each for
repsNumber of replicates of each
forcesCan force values
force_valsCan force values
bbatch size
funcActual function to get experiment values from
DDimension of data
packageWhich GP package to use in IGP
designA string saying which design object should be used.
objA string saying what the objective is.
n0The initial number of points to be selected.
force_oldA number saying how often the oldest candidate points should be forced into the design.
force_pvarA number saying how often the points with the highest predictive variance should be forced into the design.
des_funcThe desirability function.
alpha_desThe alpha constant for the weight function.
actual_des_funcThe true des func used to evaluate the model, not known in practice
weight_constThe weight constant in the weight function, usually 1.
selection_methodWhat the selection method should be.
parallelShould new values be calculated in parallel?
seed_startA seed to be set for each run
func_stringThe name of the function
save_outputShould the output be saved regularly?
stage1batchesNumber of batches to be run in "stage 1," aka nonadaptively, chosen to be space filling
folder_nameWhere should the files be saved?
folder_pathWhat is the path for the folder?
design_seed_startRandom seed for the designs
outdfA data frame with all the output
outrawdfA data frame with all the raw output
plotdfA data frame with data to be plotted
enddfA data frame with the output at the end of each simulation
meandfA data frame of the output that has been grouped and taken the mean
meanlogdfSame as meandf except some stats have been put on log scale
endmeandfA data frame of the means at the end
rungridlistA list of all runs
rungridA data frame of all runs
error_powerWhat power to put the error to for stat calculations. Either 0, 1, or c(0,1).
number_runsTotal number of runs to be done
completed_runsLogical of whether each run is completed
pass_listList of names of objects to be passed when using parallel
parallel_coresNumber of cores to use when running in parallel
parallel_clusterIf running in parallel, the parallel cluster
new()Initialize the R6 object
compare.adaptR6$new(
func,
D,
L,
b = NULL,
batches = 10,
reps = 5,
obj = c("nonadapt", "grad"),
force_old = c(0),
force_pvar = c(0),
n0 = 0,
stage1batches = 0,
save_output = F,
func_string = NULL,
seed_start = as.numeric(Sys.time()),
design_seed_start = as.numeric(Sys.time()),
package = "laGP",
selection_method = "SMED",
design = "sFFLHD",
des_func = NA,
alpha_des = 1,
weight_const = 0,
error_power = 1,
actual_des_func = NULL,
pass_list = list(),
folder_name,
parallel = FALSE,
parallel_cores = "detect"
)funcThe true function. Should take a matrix as input with D columns, each row is an X point. Or just each point as a vector, depends on func_run_together
DNumber of input dimensions. Should all be 0 to 1.
LBatch size
bBatch size to add each iteration
batchesNumber of batches to run for
repsNumber of replicates of each combination
objObjective type
force_oldProportion of points to be force added from Xopts because they are old.
force_pvarProportion of points to be force added from Xopts because they have highest predictive variance
n0Number of points to start experiment with
stage1batchesNumber of batches to be run in "stage 1," aka nonadaptively, chosen to be space filling
save_outputShould the output be saved regularly?
func_stringThe name of the function
seed_startA seed to be set for each run
design_seed_startA seed to be set for the design points
packageGaussian process model package to use
selection_methodHow should points be selected?
designThe design to take candidate points from.
des_funcThe desirability function
alpha_desAlpha value for the desirability function
weight_constWhat is the weight constant?
error_powerWhich error power should be saved? Either 0, 1, or maybe c(0,1)?
actual_des_funcThe actual des func
pass_listList of things to pass to adapt concept for each.
folder_nameWhere should the files be saved?
parallelShould points be evaluated in parallel
parallel_coresNumber of parallel cores to be used.
useSMEDthetaShould theta be used when SMED is used? Theta is the correlation parameter in each dimension. Helps space things properly
take_until_maxpvar_belowIf given, nonadaptive batches will be taken instead of adaptive until max pvar is below this value.
new_batches_per_batchEach time a batch is added, how many batches of points should be added as candidates
set_folder_name()Set the folder name where this will be saved
compare.adaptR6$set_folder_name(folder_name, add_timestamp = FALSE)
folder_nameName of the folder to use
add_timestampShould the timestamp be included in the folder name?
create_output_folder()Create the folder to save the output
compare.adaptR6$create_output_folder(add_timestamp = FALSE)
add_timestampNot used.
run_all()Run all remaining simulations
compare.adaptR6$run_all( redo = FALSE, noplot = FALSE, save_every = FALSE, run_order, parallel = self$parallel, parallel_temp_save = FALSE )
redoShould already completed ones be redone?
noplotShould plots not be made?
save_everyShould the object be saved after each simulation, or just at the end?
run_orderIn what order should they be run?
parallelShould it be run in parallel?
parallel_temp_saveShould temporary files be saved by each core when running in parallel? Useful if it crashes in the middle, can just recover from the files afterward.
run_one()Run a single simulation
compare.adaptR6$run_one( irow = NULL, save_output = self$save_output, noplot = FALSE, is_parallel = FALSE )
irowThe simulation number to be run
save_outputShould the output be saved?
noplotShould the plots not be made?
is_parallelIs it running in a parallel environment?
add_result_of_one()Add result of one simulation run to the results
compare.adaptR6$add_result_of_one(irow, newdf1, save_output = self$save_output)
irowThe simulation number that was run
newdf1The output data frame from that run
save_outputShould the output be saved?
postprocess_outdf()Postprocess the output in outdf
compare.adaptR6$postprocess_outdf(save_output = self$save_output)
save_outputShould the output be saved?
plot_MSE_over_batch()Plot MSE by batch
compare.adaptR6$plot_MSE_over_batch( save_output = self$save_output, legend_labels = NULL )
save_outputShould the plot be saved?
legend_labelsOverride the legend labels
plot_AWE_over_batch()Ploted average weighted integrated weighted error by batch.
compare.adaptR6$plot_AWE_over_batch(save_output = self$save_output)
save_outputShould the plot be saved?
plot_AWE_over_group()Plot actual integrated weighted error by group
compare.adaptR6$plot_AWE_over_group( save_output = self$save_output, boxpl = TRUE, logy = TRUE )
save_outputShould the plot be saved?
boxplShould it be a box plot?
logyShould the y axis be on the log scale?
plot_MSE_PVar()Plot Predicted variance vs mean squared error
compare.adaptR6$plot_MSE_PVar(save_output = self$save_output)
save_outputShould the plot be saved?
plot_RMSE_PRMSE()Plot Predicted RMSE vs RMSE
compare.adaptR6$plot_RMSE_PRMSE(save_output = self$save_output)
save_outputShould the plot be saved?
plot()Make plots
compare.adaptR6$plot(save_output = self$save_output)
save_outputShould the plots be saved?
plot_run_times()Plot the time it took to run each one.
compare.adaptR6$plot_run_times()
save_self()Save this object to file.
compare.adaptR6$save_self(object_name = "object")
object_nameName of object to save in file. By default it is "object".
delete_save_folder_if_empty()Deletes the save folder if empty. Prevents empty folders from being left behind.
compare.adaptR6$delete_save_folder_if_empty()
recover_parallel_temp_save()Recover temporary files that were saved while running in parallel if it crashed previously while running.
compare.adaptR6$recover_parallel_temp_save(save_if_any_recovered = TRUE)
save_if_any_recoveredShould the object be saved immediately if it was able to recover files?
parallel_efficiency()Calculate the parallel efficiency
compare.adaptR6$parallel_efficiency()
clone()The objects of this class are cloneable with this method.
compare.adaptR6$clone(deep = FALSE)
deepWhether to make a deep clone.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.