I have some data that are training data. the feature size of training data is n but feature size of my test data is m. which one of classifiers can do classify this data?
closed as unclear what you're asking by Christoph Hanck, Peter Flom♦ Feb 3 '16 at 11:51
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
The bottom line is that you can only use the features that are common to both the training and test data sets. Example:
- Train: x1, x2, x3, x4, x5
- Test: x2, x3, x5
Then you can only train and test using x2, x3, x5. You will remove features x1 and x4 when you are training. In R x[,-c(1,4)]