"cvApply"(.x, .y, .fun, .fold = sample, ...)
SImageSet
.pixelData(.x)
, to ensure that whole samples are left out during the cross-validation. This argument is evaluated in pixelData(.x)
..fun
.ResultSet
.
The function or method passed to '.fun' must take at least two arguments: the first argument must be a object derived from SImageSet
, and the second argument must be the response variable. The function should return an object of a class derived from ResultSet
, which should have a predict
method that takes arguments 'newx' and 'newy'.
PLS
,
OPLS
,
spatialShrunkenCentroids