Categories with the same mean in target encoding
While doing target encoding it can happen that two categories have the same target mean.
This is bad because there will be no difference in the new feature in it and we will lose some information.
Also, this is potentially harmful to the model, choosing this split in the feature can produce some incongruences.
Is there any way to fix this problem?