Skip to content

Commit 4204bf6

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 52345d9 commit 4204bf6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

machine_learning/ridge_regression.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import numpy as np
22
import pandas as pd
33

4+
45
class RidgeRegression:
56
def __init__(
67
self, alpha: float = 0.001, lambda_: float = 0.1, iterations: int = 1000
@@ -14,7 +15,9 @@ def __init__(
1415
self.alpha = alpha
1516
self.lambda_ = lambda_
1617
self.iterations = iterations
17-
self.theta: np.ndarray | None = None # Initialize as None, later will be ndarray
18+
self.theta: np.ndarray | None = (
19+
None # Initialize as None, later will be ndarray
20+
)
1821

1922
def feature_scaling(
2023
self, features: np.ndarray

0 commit comments

Comments
 (0)