Decision tree

fatimidveil
fatimidveil New Altair Community Member
edited November 2024 in Community Q&A
Hi , i use id3 cart and c4.5 on my data .
My decision tree  seem confusion .
I have a  class with "public "and "private " attritube but my most of the leave only have "public" attritube as leave node ..
Is that okay ? 


Tagged:

Best Answer

  • varunm1
    varunm1 New Altair Community Member
    edited January 2020 Answer ✓
    Hello @fatimidveil

    That seems fine. They can come twice or many times depending on the rule identified by a decision tree algorithm.

    In the first case: the condition is 

    if (RTM == Yes -->  College Maintenace == No --> Matric == Private -->Mother_Qualification)

    The second condition is 

    if (RYM == Yes, College Maintenance == No --> Matric = Public --> Teacher Response == Some time --> Mother_ualification)

    You can see two branches are different and they are mainly changing based on the vale of "Matric" (Private or Public).attribute.

    This is normal.
       

Answers

  • varunm1
    varunm1 New Altair Community Member
    Hello @fatimidveil

    Yes, it is fine. Seems like your public attribute has many combinations that can be used for classification.

    If you have more questions please provide an image of your tree.
  • fatimidveil
    fatimidveil New Altair Community Member
  • fatimidveil
    fatimidveil New Altair Community Member
    this is my tree ,why the mother _qualification attritube come twice in my tree ? i 
  • varunm1
    varunm1 New Altair Community Member
    edited January 2020 Answer ✓
    Hello @fatimidveil

    That seems fine. They can come twice or many times depending on the rule identified by a decision tree algorithm.

    In the first case: the condition is 

    if (RTM == Yes -->  College Maintenace == No --> Matric == Private -->Mother_Qualification)

    The second condition is 

    if (RYM == Yes, College Maintenance == No --> Matric = Public --> Teacher Response == Some time --> Mother_ualification)

    You can see two branches are different and they are mainly changing based on the vale of "Matric" (Private or Public).attribute.

    This is normal.
       
  • fatimidveil
    fatimidveil New Altair Community Member
    Oka thankyou so much for your help sir