One-Hot-Encode categorical variables and scale continuous ones simultaneouely

前端 未结 4 1415
情书的邮戳
情书的邮戳 2020-12-24 14:04

I\'m confused because it\'s going to be a problem if you first do OneHotEncoder and then StandardScaler because the scaler will also scale the colu

4条回答
  •  不知归路
    2020-12-24 14:32

    Can't get your point as OneHotEncoder is used for nominal data, and StandardScaler is used for numeric data. So you shouldn't use them together for your data.

提交回复
热议问题