Initialize Predictor Initialization function that should be called at the beginning of any call to the surrogate models (e.g. spotPredictRandomForest, spotPredictDace, ...).

Share:

Description

Initialize Predictor

Initialization function that should be called at the beginning of any call to the surrogate models (e.g. spotPredictRandomForest, spotPredictDace, ...).

Usage

1
spotInitializePredictor(design, designType, roi, pkgs = NULL, name, verbosity)

Arguments

design

matrix, dataframe or vector that contains an experimental design of one or more observations and variables.

designType

specify "data.frame" to force the design into a dataframe. specify "as.matrix" to force a matrix.

roi

region of interest, a data frame or matrix that has a row for each parameter. It describes the region in which the design is chosen. Row names are mandatory, and describe the parameter names.

pkgs

package(s) that need to be loaded. Can be vector of several packages. If this is NULL, nothing is loaded (default).

name

name of the predictor, used only for a startup message.

verbosity

this specifies whether startup message is produced (verbosity >= 3) or not (verbosity < 3).

Value

returns the design, with the chosen format (matrix, dataframe) and transposed if number of columns do not fit to the roi.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.