0
$\begingroup$

I recently participated in some Machine Learning competition where we were asked to decide whether a rider should accept or not a course (~2k riders and ~140k courses). It came up that some of the winners used the identifier of the rider (an integer number unique for each rider) in their features which was discarded on default notebook and it greatly improved their score.

Is it legitimate? can identifier be used to train a model?

$\endgroup$
1
  • 1
    $\begingroup$ Share more information on identifiers. Is it unique or having any pattern ?? $\endgroup$
    – Wickkiey
    Apr 12, 2021 at 13:46

2 Answers 2

1
$\begingroup$

If adding the identifiers (I presume not as discrete values but converted to real numbers) improved the results, then there should be a not obvious correlation between the IDs and the target variable. Maybe IDs reflect the seniority of the rider (the higher the ID, the lower the seniority), and therefore acted as a proxy for it in the model.

Despite seeming "unorthodox", if the IDs are available at inference time, then there is no reason not to allow using them, especially when they bring to the model information that is in no other variable. Furthermore, this looks like a great example of the importance of feature engineering in data science.

$\endgroup$
0
$\begingroup$

You can use any variable during model training if this variable is available during inference time. This is the only technical restriction. Another question is should you include this column or not. If this column is completely unique and does not have any relevant information in it then you can discard it. Also, categorical columns with high cardinality (number of unique values) might also have a negative impact.

On the other hand, if including this identifier improved the score a lot (not a random fluctuation) then there are might be more to it and you need to share more info on the dataset and used models.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.