I encountered a ‘division by zero’ error in the final lab of the course Advance Learning Algorithms. Although compute_entropy function passed the test, compute_information_gain gave a zero divisor error related to compute_entropy. Furthermore, expected output are the same with the function output.
Could please you help me with this issue?