We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f018ddc commit 7105f6fCopy full SHA for 7105f6f
machine_learning/logistic_regression.py
@@ -55,6 +55,7 @@ def logistic_reg(alpha,X,y,max_iterations=70000):
55
56
if iterations== max_iterations:
57
print("Maximum iterations exceeded!")
58
+ print("Minimal cost function J=",J)
59
converged=True
60
61
return theta
0 commit comments