Assertion Error in C2_W4_Decision_Tree Exercise 3

I have tried everything, re checked multiple times, I have passed my previous exercises, cant seem to find any issue as to why my code isnt computing the right information gain. Someone Please Help.



1 Like

Hi, I have the same problem. Please help.

One key element in compute_information_gain() is that your compute_entropy() code has to correctly handle cases where the length of y is zero.

Thank you for your great tips. Problem solved.