hi
i don’t know why i got this error? (in exercise 3 - sigmoid)
Hi
remove np.dot
Take a look at formula above the tasks
there is no dot products
thanks @dmayboroda for help, i submitted the assignment and i got 88/100 and i don’t know why and i got this description and i don’t know how to fix it if it’s the reason of some score loss of my assignment.
this :
[ValidateApp | INFO] Validating ‘/home/jovyan/work/submitted/courseraLearner/W2A1/Python_Basics_with_Numpy.ipynb’
[ValidateApp | INFO] Executing notebook with kernel: python3
Tests failed on 1 cell(s)! These tests could be hidden. Please check your submission.
Please how do I return a float from finding the absolute value of a vector of size m. I keep getting this error.
@Robert255: Your code is correct as far as it goes, but you missed the last step: you are returning a vector of the absolute values of the differences between the corresponding elements. Have another look at the formula for the L1 loss: you then need to take the sum of those to get a scalar value.
Yeah, I took the sum of it and it worked. Thanks for the help. I also have a problem with the grader. Although I get “all test passed” in the notebook, the grader gives a wrong grade after submission. How can this problem be solved?
You need to debug it. The test cases in the notebook can’t catch every error. One particular type of error they don’t catch is referencing global variables instead of the actual parameters being passed into your function.