why my program all tests passed but my assignment was rejected, I did not change the code given from the beginning
Your code is throwing an error in Section 5 when it calls generate_tree_viz().
The most likely error is that build_tree_recursive() is not working correctly, because one of the functions you completed has a defect.
So first, check whether your code for these functions works correctly:
- get_best_split()
- compute_information_gain()
- split_dataset()
- compute_entropy()
Check all of the unit test results and expected values in the notebook very carefully.