Failed to submit last lab

When creating a post, please add:

  • Week # must be added in the tags option of the post.
  • Link to the classroom item you are referring to:
  • Description (include relevant info but please do not post solution code or your entire notebook):

I’m trying to complete the lab C2_W4_Decision_Tree_with_Markdown
in course Advanced Learning Algorithms , however at the end after passing successfully all 4 exercises I have to execute the last cell which is not a part of submitted cells and it fails on an internal python failure

Hello @dan_abergel,

Please share screenshot(s) for the whole error message.

Cheers,
Raymond

Even the ungraded parts of the assignment must have correct Python code - otherwise the grader crashes and you get no score.

but I did not write this piece of code
it’s a celle written by you

I suspect the error is in your get_best_split() function or compute_information_gain().

build_tree_recursive() calls get_best_split(), which calls compute_information_gain().

however I get “All tests passed” for all four exercises?

in addition it seems like the failure is concerning your inner code

The test cases in the notebook to not prove your code is perfect.

You have not proved this.

Did you manage to get this fixed? I’m having a similar error too and can’t submit the lab even though all the code runs

We’re not aware of any issues with this assignment.
Other than the potential for errors in your code.

Can you provide some more information?