PCA For categorical features?

后端 未结 6 2035
清酒与你
清酒与你 2020-12-13 06:15

In my understanding, I thought PCA can be performed only for continuous features. But while trying to understand the difference between onehot encoding and label encoding ca

6条回答
  •  伪装坚强ぢ
    2020-12-13 07:11

    I think pca is reducing var by leverage the linear relation between vars. If there's only one categoral var coded in onehot, there's not linear relation between the onehoted cols. so it can't reduce by pca.

    But if there exsits other vars, the onehoted cols may be can presented by linear relation of other vars.

    So may be it can reduce by pca, depends on the relation of vars.

提交回复
热议问题