mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
minor changes
requested changes are addressed
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user