Skip to content

Commit eb94982

Browse files
committed
Fixing linting
1 parent 5142ac0 commit eb94982

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

src/skmatter/_selection.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,6 @@ def score(self, X, y=None):
570570
score : numpy.ndarray of (n_to_select_from_)
571571
:math:`\pi` importance for the given samples or features
572572
"""
573-
574573
X, y = validate_data(self, X, y, reset=False)
575574

576575
return self.pi_
@@ -747,7 +746,6 @@ def score(self, X, y=None):
747746
score : numpy.ndarray of (n_to_select_from_)
748747
:math:`\pi` importance for the given samples or features
749748
"""
750-
751749
X, y = validate_data(self, X, y, reset=False)
752750

753751
return self.pi_
@@ -943,7 +941,6 @@ def score(self, X, y=None):
943941
-------
944942
hausdorff : Hausdorff distances
945943
"""
946-
947944
X, y = validate_data(self, X, y, reset=False)
948945

949946
return self.hausdorff_
@@ -1107,7 +1104,6 @@ def score(self, X, y=None):
11071104
-------
11081105
hausdorff : Hausdorff distances
11091106
"""
1110-
11111107
X, y = validate_data(self, X, y, reset=False)
11121108

11131109
return self.hausdorff_

src/skmatter/decomposition/_pcovr.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ def fit(self, X, Y, W=None):
221221
Regression weights, optional when regressor=`precomputed`. If not
222222
passed, it is assumed that `W = np.linalg.lstsq(X, Y, self.tol)[0]`
223223
"""
224-
225224
X, Y = validate_data(self, X, Y, y_numeric=True, multi_output=True)
226225

227226
# saved for inverse transformations from the latent space,
@@ -636,7 +635,6 @@ def score(self, X, y, T=None):
636635
Negative sum of the loss in reconstructing X from the latent-space
637636
projection T and the loss in predicting Y from the latent-space projection T
638637
"""
639-
640638
X, y = validate_data(self, X, y, reset=False)
641639

642640
if T is None:

src/skmatter/linear_model/_ridge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import numpy as np
22
from joblib import Parallel, delayed
3-
from sklearn.base import RegressorMixin, MultiOutputMixin, BaseEstimator
3+
from sklearn.base import BaseEstimator, MultiOutputMixin, RegressorMixin
44
from sklearn.metrics import check_scoring
55
from sklearn.model_selection import KFold, check_cv
66
from sklearn.utils.validation import check_is_fitted, validate_data

0 commit comments

Comments
 (0)