1
$\begingroup$

When using sklearn.datasets import load_diabetes, the sex variable which is categorical, is scaled to continuous values. Is it even legal to scale such variables?

$\endgroup$

1 Answer 1

0
$\begingroup$

Yes, it is perfectly legal to do so. Scaling such binary variables does not change the shape of its histogram and the shape is all that matters to most models.

$\endgroup$

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