I took the DeepLearning.AI ML Specialization courses on Coursera.
I noticed the unit test for the graded assignment on Decision Trees is failing though my outputs strictly match the expected outputs. This is precluding me from claiming my certificate. Can the instructor (Andrew Ng) look into this issue asap?
Hi. Please post a screenshot of the unit test error message (or grader feedback if the error is there) so the Mentors can get more context about the issue. Thanks.
@Amakoe_Alognon , the first 3 tests that you are seeing come from the 3 calls to compute_information_gain you see in the code below. Immediately after that, it calls compute_information_gain_test() which runs some additional unit tests, and that is where your error is happening.
So the good news is your code is handling those first 3 cases fine, but something is going wrong in a test in compute_information_test() where it is expecting the information gain to be 0.0, but your code is returning nan (not a number).
It may be helpful to look at the code in compute_information_test() to see exactly what values it is passing to compute_information_gain(), so you can narrow in on what is wrong in your code. You can find the unit test code by going to the File menu, picking Open…, and then looking in public_tests.py

