I have implemented PCA on training data and the result is ready. Now I want to use the same PCA on test. Is there any way to perform the same PCA on test as training in weka?
Asked
Active
Viewed 2,614 times
1
-
What do you mean "test" here? Cases that did not participate in the PCA and for which you need to compute PC scores? – ttnphns Apr 13 '14 at 07:51
-
the training data are which has class label and test do not. I have performed pca on training now, with the same parameter I wanna do it for test. for example if the first attribute in training is "0.2*h1+0.7*h2" I wanna have this attribute for test. – Paniz Apr 14 '14 at 13:55
1 Answers
2
This is easily done by using batch filtering, that allows applying a filter to both a training and a test set in WEKA. Your only problem is that you will have to apply PCA to the training set again -- although you should get the same results if you make use of the same options.

Jose Maria Gomez Hidalgo
- 256
- 1
- 2