hello
lab id: swcppxrpfckf
I have checked ample of times and i could see no mistake from my end but still there is a syntax error in Cost function for regularized logistic regression exercise 5 ,line no:8
am not able to modify it. kindly help
Hi @sabiha_mohammed,
Which course and week is the assignment, could you show the screenshot of the error?
Hi @sabiha_mohammed ,
There should not be w[j]**2
after the print function. It often happens when learners mistype their assignment code. Delete w[j]**2
at line 8 should fix it. You can refresh the workspace if you think you’ve accidentally modified other default codes as well.
I’ve also corrected your course labels to Machine Learning Specialization so other mentors can help with your issue.
Hi
Thanks for your reply
But that error is default and I am not able to change .I cant modify it
Somehow, you managed to edit that cell and add the code that is causing the syntax error. Here is what it should look like:
There are instructions at the bottom of the notebook for how to make the cell editable so you can fix the issue. (it’s the hint labeled “… if you want to experiment with any of the non-graded cells”).
HI TMosh , Th_o_Vy_Le_Nguy_n
Thank you so much , that worked!