Problems with Grader C3W1 - "Test model"

Hi everyone,

I’ve just updated course 3 to the new version and submitted the assignment for week 1.
I do not have any error messages in the assignment.
However, the grader shows the following error for the part “Test model”:
“There was a problem grading your submission. Check stderr for more details.”

Does anyone know what problem/mistake in my assignment that could be?

Thanks in advance for any suggestions/pieces of advice :slight_smile:

…I got the same error for the assignment C3W3. - I found out that in some earlier assignments people recommended to restart the kernel and rerun the assignment and submit again.

  • It helped for C3W3, now I am trying for C3W1:)

Hi. Did you figure it out? I am having the same issue.

… no, unfortunately C3W1 still gives me the same sderr… I restarted the kernel and resubmitted multiple times now, and nothing changes. It just doesn’t give me any points for test_model…

Edit: I had the same error for C3W4. The grader would give 0 points and sderr for the last task. The solution was an error in the data_generator function much earlier. However, there was no indication in the notebook, it wasn’t showing any errors. So my conclusion is: maybe in C3W1 there is somewhere an error which is not obvious and not shown :sweat_smile::see_no_evil:.

Hi @Viktoria_S,

Can you share more details about this ?

Thanks,
Mubsi

Hi Mubsi,

I couldn’t solve the sderr-problem in C3W1.

For C3W3 it was enough to restart the kernel and rerun the assignment and submit again.

For C3W4 I had the following first:
in the data_generator I calculated max_len the following way:
max_len = max( max(input1[0],input1[1]) , max(input2[0],input2[1]) )

  • it gave me some errors I couldn’t interpret but passed all unittests
  • also the grader accepted everything except of the “predict” function, where it gave a sderr
  • I then debugged the last part and got an error I could work with, because max_len was not applicable to the last example ( :slight_smile: luckily!) → so I changed it to:
    max_len = max( max([len(i) for i in input1]) , max([len(j) for j in input2]) )
    afterwards, there was no sderr anymore. :partying_face:

Now I am wondering, maybe in C3W1 I managed to implement something that is not quite right. But I couldn’t find it yet, because I got no indication except of the sderr. Restarting the kernel did not help in C3W1 (I tried it quite often).

Hi @Viktoria_S,

Are you still facing an issue with this ?

Regards,
Mubsi

Yes. Unfortunately, I couldn’t solve the problem.

Hi @Viktoria_S,

Can you share your lab ID with me ? In the assignment, when you click the top right “Help” button, a panel will open and your lab ID will be shown at the bottom.

I shall take a look.

When you reply back, kindly tag me in the post so that I’m notified.

Thanks,
Mubsi

Hi @Mubsi,

Thank you for having a look at it!
My lab ID is: rifjdokn

Regards,
Viktoria

Hi @Viktoria_S,

After looking at your notebook, in Ex 7, you were using the wrong data type for the variable correct_float. And in Ex 8, you were using a global variable to pass in the model inputs.

Submit your notebook now and let me know how it goes.

Best,
Mubsi

Hi @Mubsi,

Thank you for looking at my code.
Now it gets graded without error. :slight_smile:

Regards,
Viktoria

I am stuck with the same problem, can anyone help me to figure out what is the problem?

Hi @Mubsi,

I have checked and double-checked the code, but I can’t get the score of Ex 8, could you please check my code?
Lab ID=avqxjyczrzyo
tnx a lot

Hi @Reza_JafariRaviz,

Is this something you still need help with ?

Best,
Mubsi

Yes, I can’t figure out why my Ex 8 is graded as 0, and what is wrong with that?

Hi @Reza_JafariRaviz,

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 errors.

With that being said, in your Ex 8, you are using the global variable training_loop.eval_model(inputs), instead of using the function parameter.

Make that change and it should give you the grade.

Best,
Mubsi

Thanks a lot despite of checking the code I really did not see this flaw