Can the number of Predictors be different for Train and Test data?
조회 수: 1 (최근 30일)
이전 댓글 표시
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.
댓글 수: 2
채택된 답변
Sai Bhargav Avula
2019년 7월 17일
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.
댓글 수: 0
추가 답변 (1개)
Greg Heath
2019년 7월 18일
Of course not. The ultimate purpose of training is to create a model that works well on non-training data.
Thank you for formally accepting my answer
Greg
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!