Skip to content

Commit 0c01bb7

Browse files
committed
Updated code as per PR feedback 7
1 parent a99a729 commit 0c01bb7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

machine_learning/ridge_regression.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ def ridge_cost_function(x: np.ndarray, y: np.ndarray, theta: np.ndarray, alpha:
3434

3535
def ridge_gradient_descent(x: np.ndarray, y: np.ndarray, theta: np.ndarray, alpha: float, learning_rate: float, max_iterations: int) -> np.ndarray:
3636
"""
37-
Perform gradient descent to minimize the cost function and fit the Ridge regression model.
37+
Perform gradient descent to minimize the
38+
cost function and fit the Ridge regression model.
3839
3940
@param X: The feature matrix (m x n)
4041
@param y: The target vector (m,)

0 commit comments

Comments
 (0)