Kat
Kat

Reputation: 19

Target feature can be label-encoded then apply one-hot encoding afterwards

I want to apply a decision tree classifier, after I label-encode the target feature to 0,1,2,3 can i apply one-hot encoding to it again? is that allowed?

enter image description here

Upvotes: 0

Views: 141

Answers (1)

Aman
Aman

Reputation: 33

There should be only one target column. After applying One Hot Encoding on Target Column, it will create three new target columns which is not the correct way.

Upvotes: 2

Related Questions