Computes the prediction error by considering a testing dataset.
PredErr(X, XT, YT, mu, gamma, res, kernel, Dmax)
Arguments
X: Matrix of observations with n rows and d columns.
XT: Matrix of observations of the testing dataset with ntest rows and d columns.
YT: Vector of response observations of testing dataset of size ntest.
mu: Vector of positive scalars. Values of the Group Sparse penalty parameter in decreasing order. See function RKHSMetMod.
gamma: Vector of positive scalars. Values of the Ridge penalty parameter in decreasing order. See function RKHSMetMod.
res: List, includes a squence of estimated meta models for the learning dataset, using RKHS Ridge Group Sparse or RKHS Group Lasso algorithm, associated with the penalty parameters mu and gamma. It should have the same format as the output of one of the functions: pen_MetMod, RKHSMetMod or RKHSMetMod_qmax.
kernel: Character, shows the type of the reproducing kernel: matern, brownian, gaussian, linear, quad. The same kernel should be chosen as the one used for the learning dataset. See function calc_Kv.
Dmax: Integer between 1 and d. The same Dmax should be chosen as the one used for learning dataset. See function calc_Kv.
Details
Details.
Returns
Matrix of the prediction errors is returned. Each element of the matrix is the obtained prediction error associated with one RKHS meta model in "res".
References
Kamari, H., Huet, S. and Taupin, M.-L. (2019) RKHSMetaMod : An R package to estimate the Hoeffding decomposition of an unknown function by solving RKHS Ridge Group Sparse optimization problem. arXiv:1905.13695