minor changes

requested changes are addressed
This commit is contained in:
Taru 2018-10-17 01:07:29 +05:30 committed by GitHub
parent f018ddc4c0
commit 7105f6f648
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,6 +55,7 @@ def logistic_reg(alpha,X,y,max_iterations=70000):
if iterations== max_iterations:
print("Maximum iterations exceeded!")
print("Minimal cost function J=",J)
converged=True
return theta