mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 23:11:09 +00:00
minor changes
requested changes are addressed
This commit is contained in:
parent
f018ddc4c0
commit
7105f6f648
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user