mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 15:01:08 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
6fc134d96c
commit
21fe32fcbe
|
@ -45,7 +45,7 @@ class RidgeRegression:
|
|||
|
||||
<<<<<<< HEAD
|
||||
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):
|
||||
X_scaled, _, _ = self.feature_scaling(X)
|
||||
|
@ -71,7 +71,7 @@ if __name__ == "__main__":
|
|||
|
||||
<<<<<<< HEAD
|
||||
# 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
|
||||
X = np.c_[np.ones(X.shape[0]), X]
|
||||
|
|
Loading…
Reference in New Issue
Block a user