Should we use country_code and region as categorical features or numerical ones?
Data ·9 Jun 2021, 03:54·2
In reality, country_code and region are categorical features. But in our dataset, they are encoded as numerical ones. So, in which encoding format should we input these features for helping the model to better generalize?
We all understand that they are categorical features. But passing them to the model as numerical features, the model will try to compute weight like someone belonging to a country with a higher country_code/region will have more/less chances to use mobile/internet banking. Anyway, thanks for sharing ...
They are categorical no matter the format they come in because each country has a unique number.
We all understand that they are categorical features. But passing them to the model as numerical features, the model will try to compute weight like someone belonging to a country with a higher country_code/region will have more/less chances to use mobile/internet banking. Anyway, thanks for sharing ...