C1_W3_Lab06_Gradient_Descent_Soln

Hello:


In the picture above,I have two questions:
1.I rewrite the code for the function(compute_gradient_logistic):swap the order of m and n,leading to some necessary adjustment inside the loop.Could someone tells me whether my adjustment is right?
2.If I’m right,why the complier shows the error after running!
Thanks!

Hi,

Indentation is important in python, it denotes which pieces of code goes into which code blocks.
Currently your code is outside of the method block.
Please see this for more information: Python Indentation.

Thanks!
Already solve it!