Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Assignment 2 week 3 (TypeError: 'numpy.float64' object is not iterable) #73

Open
morrisbmm opened this issue Feb 15, 2021 · 1 comment

Comments

@morrisbmm
Copy link

H = sigmoid(np.dot(X,theta))
J = (1/m)*sum((np.dot(-y,np.log(H)))-np.dot((1-y),np.log(1-H)))
grad = (1/m)*sum(np.dot(X,(H-y)))

@morrisbmm
Copy link
Author

I keep getting this error(TypeError: 'numpy.float64' object is not iterable). someone help me out

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant