Skip to content

Children nodes are lost #1

@KenKJ

Description

@KenKJ

Hi friend,
I use below simple usecase to test the codes, found the tree had lost some children nodes, Like"EmIncome" , can you help check what the issue is?

I found the function: calculateSubTreeEntropy only runs normal when caculate the root node, and then it always returns 0.0, keeping investigating..

BigName|EmAgeLevel|EmIncome|IsStudent|EmCreditRate|Class
Haha|YOUTH|HIGH|false|FAIR|false
Haha|YOUTH|HIGH|false|EXCELLENT|false
Haha|MIDDLE_AGED|HIGH|false|FAIR|true
Haha|SENIOR|MEDIUM|false|FAIR|true
Haha|SENIOR|LOW|true|FAIR|true
Haha|SENIOR|LOW|true|EXCELLENT|false
Haha|MIDDLE_AGED|LOW|true|EXCELLENT|true
Haha|YOUTH|MEDIUM|false|FAIR|false
Haha|YOUTH|LOW|true|FAIR|true
Haha|SENIOR|MEDIUM|true|FAIR|true
Haha|YOUTH|MEDIUM|true|EXCELLENT|true
Haha|MIDDLE_AGED|MEDIUM|false|EXCELLENT|true
Haha|MIDDLE_AGED|HIGH|true|FAIR|true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions