C2_W4_Decision_Tree_with_Markdown assertion error

Hi, I’m getting assertion errors in C2_W4_Decision_Tree_with_Markdown lab assignment in Exercise 3 and 4, even though my code is producing the expected result. I have tried out the code in the hints and still fails.

Could you please assist? Thanks in advance.

Issue resolved.

i’m having the same issue what should i do?

There appears to be an error in your compute_information_gain() function.

Your code is only passing the simple tests in the notebook. It is not passing the more complex tests that are used in the compute_information_gain_test() function.

You can inspect this test by opening the public_tests.py file, and reading its test cases.