Skip to content

Commit

Permalink
Code style fixes for logistic regression.
Browse files Browse the repository at this point in the history
  • Loading branch information
trekhleb committed Dec 19, 2018
1 parent 5904a03 commit 15b549b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homemade/logistic_regression/logistic_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def predict(self, data):

@staticmethod
def gradient_descent(data, labels, initial_theta, lambda_param, max_iteration):
"""GRADIENT DESCENT function.
"""Gradient descent function.
Iteratively optimizes theta model parameters.
Expand All @@ -106,7 +106,7 @@ def gradient_descent(data, labels, initial_theta, lambda_param, max_iteration):
:param max_iteration: maximum number of gradient descent steps.
"""

# Initialize J_history with zeros.
# Initialize cost history list.
cost_history = []

# Calculate the number of features.
Expand Down

0 comments on commit 15b549b

Please sign in to comment.