Learn R Programming

CEGO (version 2.1.0)

buildModel: Model building

Description

Model building support function for optimCEGO. Should not be called directly.

Usage

buildModel(res, distanceFunction, control)

Arguments

distanceFunction

a suitable distance function of type f(x1,x2), returning a scalar distance value, preferably between 0 and 1. Maximum distances larger 1 are no problem, but may yield scaling bias when different measures are compared. Should be non-negative and symmetric. In case Kriging is chosen, it can also be a list of several distance functions. In this case, MLE is used to determine the most suited distance measure (see the last reference).

control

list of options model Model to be used as a surrogate of the target function. Default is "K" (Kriging). Also available are: "LM" (linear, distance-based model), "RBFN" Radial Basis Function Network. modelSettings List of settings for model building, passed on as the control argument to the model training functions modelKriging, modelLinear, modelRBFN. infill This parameter specifies a function to be used for the infill criterion (e.g., the default is expected improvement infillExpectedImprovement). To use no specific infill criterion this has to be set to NA. Infill criteria are only used with models that may provide some error estimate with predictions.

x

list of samples in input space

y

matrix, column vector of observations for each sample

Value

a list: fit model-fit fpred prediction function

See Also

optimCEGO