I am getting very strange results (a huge number) on my exercise 2 cost. Can someone help?
I took this course to get an introduction and, unfortunately, am not a programmer (I am a technical writer)…So far I was able to go through all of the exercises and follow more or less. Andrew in his video was encouraging (I got the message that I didn’t have to worry about knowing Python). But now I have doubts. Can someone help? I think it would have been a great idea to have some kind of TA /discussion sessions along with this course.
@Jiri_Weiss I believe it could be the wrong implementation of the formula to compute the cost. You may like to paste the snippet so that we can shed some insights and also not breach the honor code indirectly
@Jiri_Weiss Maybe you can use the one line np.dot to compute z before passing into the sigmoid function. It much cleaner and efficient compare to using a for loop to compute dot product which I feel is messy and prone to logic error. Give it a shot and see if it help before troubleshooting the rest of the code .
All of the DLAI MLS courses assume that students already have basic skills in Python programming.
So I recommend you pause what you’re doing and attend an introductory Python course.
In the future, please don’t post your code on the forum - that’s not allowed by the Code of Conduct. If a mentor needs to see your code, we’ll contact you with instructions.