Hello, in this part errors appear even though the expected values are correct.
Hi @emeric,
Please make sure you are not using any global variables in any of the functions.
Let me know if after checking and adjusting, the problem still remains.
Best,
Mubsi
@Mubsi Hi, I answered you now.
Hi @emeric,
At the start of the notebook there’s:
**Important Note on Submission to the AutoGrader**
Before submitting your assignment to the AutoGrader, please make sure you are not doing the following:
1. You have not added any extra print statement(s) in the assignment.
2. You have not added any extra code cell(s) in the assignment.
3. You have not changed any of the function parameters.
4. You are not using any global variables inside your graded exercises. Unless specifically instructed to do so, please refrain from it and use the local variables instead.
5. You are not changing the assignment code where it is not required, like creating extra variables.
If you do any of the following, you will get something like, Grader not found (or similarly unexpected) error upon submitting your assignment. Before asking for help/debugging the errors in your assignment, check for these first. If this is the case, and you don't remember the changes you have made, you can get a fresh copy of the assignment by following these instructions.
This clearly mentions if you do any of the listed things you will run into Grader not found error
.
You clearly violated rule (5) by adding an extra import statement in the assignment, from sklearn.metrics import accuracy_score
, and hence when you used accuracy_score
in your Ex 5
, you were using it as a global variable, thus violating rule (4) as well.
I have removed the from sklearn.metrics import accuracy_score
from your notebook and would ask you to attempt Ex 5
again. Implement accuracy
by following all of the instructions provided in the notebook.
Best,
Mubsi
P.S you also violated (5) in Ex 2
by creating new variables. For now, the grader seems to be okay with it, but in the future assignments, don’t create any new variables.
Things to remember for future assignments, don’t create extra variables or add your own imports.