1
$\begingroup$

Hope you are doing well. I have some problem with mixed. For the classification problem, can we standardize categorical and numerical variables together or just standardise numerical variable or don't need to standardise. For example age[0..120], sex[0..2] , productName[0..5], etc..

$\endgroup$
1
  • $\begingroup$ Just do it for Numerical features. $\endgroup$
    – 10xAI
    Commented Mar 31, 2021 at 11:25

2 Answers 2

1
$\begingroup$

Each feature is standardized independently so it does not matter if different features are different types (numeric or categorical).

Standardized is typically only done on numerical features.

$\endgroup$
0
$\begingroup$

It is better to apply for all features individually.

Besides of that, if categorical variables do not have so many discrete values, you can consider one hot encoding as well. This approach generally get better results.

$\endgroup$

Your Answer

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

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