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:
Maxim Smolskiy
2024-04-22 22:56:14 +03:00
committed by GitHub
parent 4700297b3e
commit d016fda51c
5 changed files with 5 additions and 8 deletions

View File

@ -146,7 +146,7 @@ class PolynomialRegression:
"Design matrix is not full rank, can't compute coefficients"
)
# np.linalg.pinv() computes the MoorePenrose 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: