-
Notifications
You must be signed in to change notification settings - Fork 9
Description
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