buildCVModel: buildCVModel

Description Usage Arguments Value

View source: R/buildCVModel.R

Description

Build a set of models trained on different folds of cross-validated data. Can be used to estimate the uncertainty of a given model type at any point.

Usage

1
buildCVModel(x, y, control = list())

Arguments

x

design matrix (sample locations)

y

vector of observations at x

control

(list), with the options for the model building procedure:
types a character vector giving the data type of each variable. All but "factor" will be handled as numeric, "factor" (categorical) variables will be subject to the hamming distance.
target target values of the prediction, a vector of strings. Each string specifies a value to be predicted, e.g., "y" for mean, "s" for standard deviation. This can also be changed after the model has been built, by manipulating the respective object$target value.
uncertaintyEstimator a character vector specifying which uncertaintyEstimator should be used. "s" or the linearlyAdapted uncertrainty "sLinear". Default is "sLinear".
modellingFunction the model that shall be fitted to each data fold

Value

set of models (class cvModel)


SPOT documentation built on Oct. 23, 2021, 1:06 a.m.