Hi - I am getting an error similar to what other people have experienced, but I have’nt seen a clear reconciliation of the issue.
This is associated with the get_best_split function. I am getting the right answer, but also an assertion error. See below:
All my previous exercises were executed without any errors and the code is pretty much the same as the one provided in the hint. Any help to resolve this is greatly appreciated.
Thanks!
TMosh
November 21, 2024, 4:30am
2
The get_best_split() function is fairly simple. Maybe the issue is in your compute_information_gain() function.
Thanks for your response! I don’t think so as my output from compute_information_gain() function matches with the expected output.
TMosh
November 21, 2024, 5:36am
4
That’s just one test, it doesn’t prove your code is perfect.
Check how it works with the conditions that are failing when test_get_best_split() is called.