In many beginner ML lectures / tutorials, it's advised to remove those features that uniquely identify the example. For example, if predicting user behavior, a numeric user_id
column should be removed. The stated reason is that a powerful classifier would use that column to fit perfectly on the training set, ignoring all the other columns, resulting in a useless model (of course the CV will show that).
I don't understand why a classifier might focus so much on user_id
at the expense of the other columns. Any continuous column often has the power to uniquely identify the example. For example, if we use user_distance_from_nearest_store
with high enough precision, its likely no two users have exactly the same distance, so the distance may uniquely identify users.
So I can't see why including user_id
would cause any more problems that including any other completely unimportant continuous feature. Am I missing something?
(Of course, I understand user_id
shouldn't be included, since it can't help the model and can hurt it due to noise. I'm just trying to understand why it might be so influential if it's included by accident.)
Edit: to clarify, by "numeric" column, I meant not categorical. Also, I was talking about a classifier, but the intuition will carry over to a regression.