C2W4_Submission error_"Can't complie the student's code"

Hi,

All of my code has had the tests pass but when I try to submit my assignment I get the following error:

Cell #14. Can’t compile the student’s code. Error: NameError(“name ‘build_tree_recursive’ is not defined”)
Traceback (most recent call last):
File “/home/www/app/grading/exceptions.py”, line 112, in handle_solution_errors
yield {}
File “/home/www/app/grading/abstract.py”, line 393, in _grade
context = compiled_code.run(cell_index=cell.index)
File “/home/www/app/grading/submission/compiled_code.py”, line 195, in run
return list(self._code_items.values())[cell_num - 1].run()
File “/home/www/app/grading/submission/compiled_code.py”, line 54, in run
return import_module(self.import_statement, items)
File “/usr/local/lib/python3.7/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1006, in _gcd_import
File “”, line 983, in _find_and_load
File “”, line 967, in _find_and_load_unlocked
File “”, line 677, in _load_unlocked
File “”, line 728, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/tmp/student_solution_cells/cell_14.py”, line 16, in
build_tree_recursive(X_train, y_train, root_indices, “Root”, max_depth=2, current_depth=0)
NameError: name ‘build_tree_recursive’ is not defined

My lab ID is ehlynxsmhpwe, thanks for any help!

This function, the error says its not defined, can you check if you havent deleted it in some way. If you have deleted it you need to reset the lab, but dont forget to save your work before you reset it!

Dear Mentor,

Sorry for the late feedback.

Actually I had tried reset my lab on the same day, it didn’t work.

However, I just try to submit assignment again and it shows pass this time!

The define of build_tree_recursive is captured below for your reference.

Thank you!