Can you exclude the unique identifier column from a machine learning model?


Excluding the unique identifier column (often the person_id column from the employee or employee_event table) will cause your model to error and fail. If you attempt to exclude the unique identifier column in the core attributes recipe step in the One AI query builder, the exclude button will be greyed out and you will be unable to do so. When you scroll over the exclude button, you will see the following message: "Automatically included because this is the unique identifier for the dataset."

If your model is erroneously selecting unique id as a feature, you can perform a per column intervention to get around this. To do so, click Edit on your model, scroll to per column interventions in the One AI Configuration, and add the unique identifier column. Change the droppability to always, save, and rerun your model. This will prevent the model from erroring and will also prevent the model from selecting this column as a feature. 

Was this article helpful?

0 out of 0 found this helpful



Please sign in to leave a comment.