can I delete columns in test dataset? machine learning

If I deleted two columns in training dataset, should I delete the same column in test dataset?

I know I can't apply anything to the test dataset but I deleted columns only in the training dataset, and there was an error that the number of features was not correct with test dataset...

1 answer

  • answered 2021-04-08 03:05 ubershmekel

    Machine learning models don't know which column is which. Generally you want to keep the columns the same for whatever the model needs to analyze.