loo_internal {xnet} | R Documentation |
These functions implement different cross-validation scenarios for two-step kernel ridge regression. It uses the shortcuts for leave-one-out cross-validation.
loo.i(Y, Hk, Hg, pred)
loo.i0(Y, Hk, Hg, pred)
loo.r(Y, Hk, Hg, ...)
loo.c(Y, Hk, Hg, ...)
loo.b(Y, Hk, Hg, ...)
loo.e.sym(Y, Hk, pred)
loo.e.skew(Y, Hk, pred)
loo.e0.sym(Y, Hk, pred)
loo.e0.skew(Y, Hk, pred)
loo.v(Y, Hk, ...)
loo.i.lf(Y, alpha, pred)
loo.i0.lf(Y, alpha, pred)
Y |
the matrix with responses |
Hk |
the hat matrix for the first kernel (rows of Y) |
Hg |
the hat matrix for the second kernel (columns of Y) |
pred |
the predictions |
... |
added to allow for specifying pred even when not needed. |
alpha |
a vector of length 4 with the alpha values from a
|
These functions are primarily for internal use and hence not exported. Be careful when using them, as they do not perform any sanity check on the input. It is up to the user to make sure the input makes sense.
a matrix with the leave-one-out predictions
loo
for the user-level function.