I am seeing failure in grading section Train naive bayes of week2 programming assignment.
While my output is similar with the expected output not sure why its failing.
Am I doing something wrong?
Failed default_check.
Expected:
9165,
but got:
9165.
Failed smaller_check.
Expected:
9165,
but got:
9165.
Failed smaller_unbalanced_check.
Expected:
9165,
but got:
9165.
(Solution code removed, as posting it publicly is against the honour code of this community, regardless if it is correct or not)
A common reason for this is that you might be using global variable in your function. The grader will fail if you do so. Instead, you have to implement the code given the function parameters.
Also, sharing of solution code publicly is against the honour code of this community, regardless of the correctness of it. I’m have removed your code. Feel free to share the error log.