Resolved ruff checks

This commit is contained in:
Harmanaya Sharma 2024-10-23 00:28:46 +05:30
parent 85020a76c2
commit 52345d9013

View File

@ -1,7 +1,5 @@
import numpy as np
import pandas as pd
from typing import Optional, Tuple
class RidgeRegression:
def __init__(
@ -16,9 +14,7 @@ class RidgeRegression:
self.alpha = alpha
self.lambda_ = lambda_
self.iterations = iterations
self.theta: Optional[np.ndarray] = (
None # Initialize as None, later will be ndarray
)
self.theta: np.ndarray | None = None # Initialize as None, later will be ndarray
def feature_scaling(
self, features: np.ndarray