[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-10-23 14:21:40 +00:00
parent 6fc134d96c
commit 21fe32fcbe

View File

@ -45,7 +45,7 @@ class RidgeRegression:
<<<<<<< HEAD <<<<<<< HEAD
def compute_cost(self, X:np.ndarray, y:np.ndarray) -> float: def compute_cost(self, X:np.ndarray, y:np.ndarray) -> float:
X_scaled, _, _ = self.feature_scaling(X) X_scaled, _, _ = self.feature_scaling(X)
======= =======
def compute_cost(self, X, y): def compute_cost(self, X, y):
X_scaled, _, _ = self.feature_scaling(X) X_scaled, _, _ = self.feature_scaling(X)
@ -71,7 +71,7 @@ if __name__ == "__main__":
<<<<<<< HEAD <<<<<<< HEAD
# added bias term to the feature matrix # added bias term to the feature matrix
X = np.c_[np.ones(X.shape[0]), X] X = np.c_[np.ones(X.shape[0]), X]
======= =======
# Add bias term (intercept) to the feature matrix # Add bias term (intercept) to the feature matrix
X = np.c_[np.ones(X.shape[0]), X] X = np.c_[np.ones(X.shape[0]), X]