Skip to content

Commit 52345d9

Browse files
committed
Resolved ruff checks
1 parent 85020a7 commit 52345d9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

machine_learning/ridge_regression.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import numpy as np
22
import pandas as pd
3-
from typing import Optional, Tuple
4-
53

64
class RidgeRegression:
75
def __init__(
@@ -16,9 +14,7 @@ def __init__(
1614
self.alpha = alpha
1715
self.lambda_ = lambda_
1816
self.iterations = iterations
19-
self.theta: Optional[np.ndarray] = (
20-
None # Initialize as None, later will be ndarray
21-
)
17+
self.theta: np.ndarray | None = None # Initialize as None, later will be ndarray
2218

2319
def feature_scaling(
2420
self, features: np.ndarray

0 commit comments

Comments
 (0)