mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 18:38:39 +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:
|
if iterations== max_iterations:
|
||||||
print("Maximum iterations exceeded!")
|
print("Maximum iterations exceeded!")
|
||||||
|
print("Minimal cost function J=",J)
|
||||||
converged=True
|
converged=True
|
||||||
|
|
||||||
return theta
|
return theta
|
||||||
|
Loading…
x
Reference in New Issue
Block a user