I am trying to submit the assignments(following all instructions mentioned) for week 1 and week 2.But getting the "Grader Error: Grader feedback not found". Please help me in resolving this.Thanks

I am trying to submit the assignments(following all instructions mentioned) for week 1 and week 2.But getting the “Grader Error: Grader feedback not found”. Please help me in resolving this.Thanks.

The first question is whether all the tests in the notebook pass. There is no point in submitting to the grader unless everything passes in the notebook first. Of course just passing the notebook tests does not guarantee full marks from the grader.

If that is true, then the next thing to try is to remove your generated output before submitting to the grader. Please try this sequence:

Kernel -> Restart and Clear Output
Save
Submit to grader

The point is that the grader does not need to see your generated output and sometimes there can be JSON syntax in the output that confuses the grader.

Please try the above and let us know if it helps or not.

Hey there,
I rechecked again. I am paasing all the test expect for one(while testing “w1_unittest.unittest_test_logistic_regression” , i am passing 2 test and failing 2).But at rest all cells i am getting expected output or passing all tests. Still i am getting unexpected error in grading.Thanks.

Ok, then the first step is to fix the problem with your code that is failing the unit test. Please show us the actual output you get for that section that includes the failing unit test. Here’s what I see for that:

How does your result differ?

Hi there, attached the results from my assignment.

Ok, the value that you got is the correct number, but you can see from the error message in the test that it is complaining that it is the wrong type. I added this print statement in my function:

print(f"type(accuracy) {type(accuracy)}")

right before the final “return” statement and here’s what I get:

type(accuracy) <class 'numpy.float64'>
Logistic regression model's accuracy = 0.9950

I’ll bet that if you add the same statement, you will see type “float”. Now the question is why. I used np.mean to compute the average of the instances in which the prediction agrees with the labels.

Hey, I tried as you suggested ,but it still didn’t work (still I have 2 passed and 2 failed tests for error analysis).
I reran everything and submitted the assignment and I passed this time. :slight_smile:

Will try and submit assignment 2 now.Thanks for all help and replies.

Did you get 100% from the grader on Assignment 1? I’m a little unclear from what you said about how that could work, if you still fail the test cases in the notebook.

1 Like

I did not get 100%. I passed the week 1 assignment with 80% grades. I am still trying to figure out why it’s working for 2 tests and not for 2.

attaching the test results for your reference.

Did you fix the type of the output value for test_logistic_regression? The error message in the internal test was pretty clear: it’s telling you exactly what it doesn’t like. At least the previous one that you showed has that property …

And if you are going to show the grader output, it is not very useful unless you actually click on “Show grader output”, so that we can see if there is anything useful there. It’s not always helpful, but if we can’t see it, then it’s definitely not helpful, right?