Description Usage Arguments Value Examples
View source: R/kernel_pc_boosting.R
Function to perform Kernel Principal Component Boosting
1 | kernel_pc_boosting(X, Y, g, v, ite, thr)
|
X |
A matrix with the explanatory variables. |
Y |
a matrix with the variable to predict. |
g |
a positive number with the width parameter for the RBF Kernel. |
v |
a number between 0 and 1 that corresponds to the shrinkage parameter. |
ite |
an integer with the number of iterations. |
thr |
a threshold to discard Kernel principal components whose eigenvalue |
function an sum of squared errors.
1 2 3 4 | data(D4_multi_1)
Y = scale(matrix(D4_multi_1[,91],100,1))
X = scale(D4_multi_1[,-91])
res = kernel_pc_boosting(X,Y, g= 40, v = 0.5, ite = 3, thr = 1e-10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.