Huh, Seungho
2004-Nov-15 16:51 UTC
[R] how to obtain predicted labels for test data using "kernelpls"
Dear members, My name is Seungho Huh. I am a statistician who tries to use the Kernel PLS method in a classification problem. I am sending this email to ask you something about the "kernelpls" function in R (pls.pcr package). I would like to obtain the predicted Y values for test data, using the Kernel PLS method. Let's take the example in the R help:> data(NIR) > attach(NIR) > NIR.kernelpls <- mvr(Xtrain, Ytrain, 1:6, validation = "CV",method="kernelPLS") How can we get the predicted Y values ("Ypred") for Xtest in this case? As far as I checked, there is no parameter to specify the test data in "mvr" or "pls". I, therefore, thought about the "kernelpls" function as follows:> Kernelpls(Xtrain, Ytrain, ncomp = 21, Xtest)Is this the correct way of getting Ypred for Xtest? I am afraid that it says in the help of "kernelpls", "this function should not be called directly, but through the generic pls function with the argument method="kernel" (default)." I would really appreciate it if you can give some advice on this. Thanks a lot for your time. Seungho Huh, Ph.D. Research Statistician RTI International North Carolina, USA [[alternative HTML version deleted]]
Seemingly Similar Threads
- how to obtain predicted labels for test data using "kerne lpls"
- Compute R2 and Q2 in PLS with pls.pcr package
- Help for using nnet in R for NN training and testing
- Recursive-SVM (R-SVM)
- questions regarding the svmpath package (functions svmpath and predict)