View source: R/evaluateModel.R
evaluateModel | R Documentation |
This function produces an objective function with y=f(x) from a provided model fit.
Important note: this function expects predict(object,newdata)
to return
a list. The object$target
parameter is a string that determines which list item
is returned by the created function. If not set (NULL), object$target
is set to "y"
.
evaluateModel(object, infillCriterion = NULL, verbosity = 0)
object |
fit created by a modeling function, e.g., |
infillCriterion |
optional parameter, a function that accepts prediction results and a model object. The function should use these to alter the prediction result in a user desired way. For example turning the prediction results of a kriging model (mean and sd) into the expected improvement criterion |
verbosity |
verbosity (can be taken from control$verbosity). Default: 0 |
a function in the style of y=f(x)
, which uses the fitted object
to predict y
for sample x
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.