How to apply model trained with PCA and Random Forest to test data?
<p>In solving one of the machine learning problem, I am implementing PCA on training data and and then applying .transform on train data using sklearn. After observing the variances, I retain only those columns from the transformed data whose variance is large. Then I am training the model using RandomForestClassifier. Now, I am confused how to apply that trained model on the test data as the number of columns of test data and the retained transformed data (on which random forest is applied) is different. Any solution would be appreciated. </p>

<p>Thank you.</p>