Skip to content

Commit 21fe32f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6fc134d commit 21fe32f

File tree

1 file changed

+2
-2
lines changed
  • machine_learning/ridge_regression

1 file changed

+2
-2
lines changed

machine_learning/ridge_regression/model.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def predict(self, X:np.ndarray) -> np.ndarray:
4545

4646
<<<<<<< HEAD
4747
def compute_cost(self, X:np.ndarray, y:np.ndarray) -> float:
48-
X_scaled, _, _ = self.feature_scaling(X)
48+
X_scaled, _, _ = self.feature_scaling(X)
4949
=======
5050
def compute_cost(self, X, y):
5151
X_scaled, _, _ = self.feature_scaling(X)
@@ -71,7 +71,7 @@ def mean_absolute_error(self, y_true:np.ndarray, y_pred:np.ndarray) -> float:
7171

7272
<<<<<<< HEAD
7373
# added bias term to the feature matrix
74-
X = np.c_[np.ones(X.shape[0]), X]
74+
X = np.c_[np.ones(X.shape[0]), X]
7575
=======
7676
# Add bias term (intercept) to the feature matrix
7777
X = np.c_[np.ones(X.shape[0]), X]

0 commit comments

Comments
 (0)