How can i get the decision tree with only 2 nodes?

Ayush_44
Ayush_44 New Altair Community Member
edited November 2024 in Community Q&A
I am getting more than 2 nodes for my decision tree how can i fix this to get only 2 nodes?
the parameters i used are shown in the figure

Answers

  • MartinLiebig
    MartinLiebig
    Altair Employee
    Hi,
    just set maximal depth to 1 or 2.
    Best,
    Martin
  • Ayush_44
    Ayush_44 New Altair Community Member
    No i want depth of 5 but i want i want branches to be 2
  • Ayush_44
    Ayush_44 New Altair Community Member
    i meant like i want every node to have binary split