Need help with Week 3 Coding assignment

Hi all. I am at week 3 programming assignment of Supervised Machine learning regression and classification and need assistance as it requires minimum of 80% to pass the course. However, i am stuck at 66% and unable to understand what was wrongly done for Q3 and Q6. Can anyone please help? Lab ID: qseajjfjtule. Can anyone please correct me what is wrongly done in below image?

{moderator edit: code removed}

Please do not share your code on the forum. That is not allowed by the Code of Conduct.

Sorry for this. I will keep it in mind.

Please post a copy of the error message or assert that you see when you run the notebook tests. (Not the grader - what do you get when you run all of the cells in the notebook?)

That’s the grader report.

Does your code pass all of the tests in the notebook?

Check your personal messages for more information.

I am having exactly same issue for same assignment.

Code Cell UNQ_C1: Function 'sigmoid' is correct.
Code Cell UNQ_C2: Function 'compute_cost' is correct.
Code Cell UNQ_C3: Function 'compute_gradient' is correct.
Code Cell UNQ_C4: Function 'predict' is correct.
Code Cell UNQ_C5: Function 'compute_cost_reg' is incorrect. Check implementation.
Code Cell UNQ_C6: Function 'compute_gradient_reg' is incorrect. Check implementation. 
If you see many functions being marked as incorrect, try to trace back your steps & identify if there is an incorrect function that is being used in other steps.
This dependency may be the cause of the errors.

Not sure what is wrong. All tests are passing.

Then what shall we do here? Can anyone please help us with this assignment?

… all except for the tests that the grader uses. The grader uses different test than the notebook. Passing the notebook’s tests does not prove your code is perfect.

Check for issues like use of global variables, or hard-coded index values. Those are the most common mistakes.

The first step is for your code to pass all of the tests in the notebook. If you have a specific error message, you can post it here and we can discuss it.

Ok, I found the problem , Issue is not with my code but the submission requires filename to be same as given. I created a copy out of it and renamed it , so that I do not loose text in my original. I was expecting running notebook to be submitted as final submission. But it was submitting one from disk which was incomplete.

That’s a bummer, if I am allowed to create new notebooks, I would expect be able to submit any of the notebook as my submission.

The grader always looks for the default name for that notebook. It’s a limitation of Coursera’s platform.

This is the exact same issue I have been dealing with for the last two weeks. I have been working over 12 hours on this lab and all answers are correct but still get error message on the same exact sections. There is no place in the code I am supposed to be writing that addresses the topic of global variables or hard-coded index values. Have entered over ten variations on the code including the EXACT code Coursera hints at.

Please check your personal messages for instructions.

IMO - instead of using the nested for loops given in the notebook, you could do everything in one line using the following functions:, np.sum, np.log and functions we have defined already (sigmoid and the compute_gradient).

But I think for a better understanding of how parameters are updated iteratively we see the nested for loops.