Using the Target Encoding operator

sectyn
sectyn New Altair Community Member
edited November 2024 in Community Q&A
I want to use the Target Encoding operator on my dataset which has categorical columns. After that I want to build a decision tree using the encoded data. And to avoid overfitting I plan to use Cross Validation. How can I build this process? Do I put the Target Encoding and Decision Tree in one Cross Validation operator?
Tagged:

Best Answer

  • Telcontar120
    Telcontar120 New Altair Community Member
    Answer ✓
    Yes, you can do that, but you don't actually need to do any attribute encoding for Decision Trees.  All types of input data are handled by Decision Trees automatically.

Answers

  • Telcontar120
    Telcontar120 New Altair Community Member
    Answer ✓
    Yes, you can do that, but you don't actually need to do any attribute encoding for Decision Trees.  All types of input data are handled by Decision Trees automatically.