Feature names ordering


Does column ordering matter in XGboost? I trained the model with some data. Do the test data need to have columns in the same order as of train data.?


Yes. Your results will likely not be good if you don’t take care to make sure feature ordering is exactly aligned between train and test data.