Skip to content

Commit 781e1b1

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4a5283a commit 781e1b1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ python:
2121
path: .
2222
extra_requirements:
2323
- docs
24-
- tests
24+
- tests

sklearn_extra/robust/robust_weighted_estimator.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,13 +538,12 @@ def score(self, X, y=None):
538538
check_is_fitted(self, attributes=["base_estimator_"])
539539
return self.base_estimator_.score(X, y)
540540

541-
542541
def _estimator_has(attr):
543542
def check(self):
544543
return hasattr(self.base_estimator_, attr)
545544

546545
return check
547-
546+
548547
@available_if(_estimator_has("decision_function"))
549548
def decision_function(self, X):
550549
"""Predict using the linear model. For classifiers only.

0 commit comments

Comments
 (0)