I am stuck in linear regression week 2 practice lab

I took andrew ng Supervised Machine Learning: Regression and Classification course every thing was going well that I stuck in linear regression week 2 practice lab I tried multiple time but I am graded fail please help me with this thing.


This lab although i have read all the instructions still i am getting fail.

Hi @Arhum25

Could you provide more specific details on the part where you’re facing challenges? If there are any error messages or parts of the code that aren’t working as expected, sharing those can help finding the issue!

I have run the code as mention in the lab task but still getting fail


Please review the code sections you’ve implemented. The pre-written parts of the notebook are correct, so the issue likely lies within your custom code. Carefully check your code for alignment with the expected outputs and functionality to ensure it works fine.

@Arhum25, to provide more details about the error you’re getting from the grader, can you go to the assignment page and click on “My submissions”, click on “Show grader output” for your submission, and then share a screenshot of the error you’re getting