Regularized target encoding outperforms traditional methods in supervised machine learning with high cardinality features