mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-08 03:54:26 +08:00
Enable ruff RUF003 rule (#11376)
* Enable ruff RUF003 rule * Update pyproject.toml --------- Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
@ -146,7 +146,7 @@ class PolynomialRegression:
|
||||
"Design matrix is not full rank, can't compute coefficients"
|
||||
)
|
||||
|
||||
# np.linalg.pinv() computes the Moore–Penrose pseudoinverse using SVD
|
||||
# np.linalg.pinv() computes the Moore-Penrose pseudoinverse using SVD
|
||||
self.params = np.linalg.pinv(X) @ y_train
|
||||
|
||||
def predict(self, data: np.ndarray) -> np.ndarray:
|
||||
|
Reference in New Issue
Block a user