Can you share a screenshot of the grader’s report?
Did you finish the notebook solely on Cousera, and NOT on your local environment?
Go to the notebook, run through all the cells, make sure there is no error message, and then click “File” > “Save and Checkpoint”, and then share a screenshot of the upper part of the notebook like below:
I found an error in exercise 3 and I could pass it. I go on but in exercise 4, there is also a problem:
I coded:
{moderator edit: code removed}
The example was fine, but the tests says:
AssertionError Traceback (most recent call last)
<ipython-input-20-c263c9190d86> in <module>
3
4 # UNIT TESTS
----> 5 get_best_split_test(get_best_split)
~/work/public_tests.py in get_best_split_test(target)
166 y = X0.T
167 result = target(X, y, node_indexes)
--> 168 assert result == -1, f"When the target variable is pure, there is no best split to do. Expected -1, got {result}"
169 print("\033[92m All tests passed.")
AssertionError: When the target variable is pure, there is no best split to do. Expected -1, got 0
Please help me, I got stuck and need a hint. Did I miss one statement, e.g., which says: the variable is pure???
sorry I skipped the code, here is the screen-shot of the result of exercise 4.
Does it mean, I should have -1 as result, while my node_indexes is 0 ??
Then all is pure and I did not have to split again.
Sorry, I get stuck with this, please give me a hint,