Can the number of Predictors be different for Train and Test data?
1 view (last 30 days)
Can my train data have 6 predictors while test data have only 4?
The 4 predictors in my test data are the same as in my train data, just that 2 extra predictors of the train might not be present in my test data.
It's basic question, but I'm a bit confused. Any suggestion would be helpful thank you.
Sai Bhargav Avula on 17 Jul 2019
No, You can not have different number of predictors for the train and test data. The model you have trained would require all the predictor that is trained on for an accurate prediction.