Skip to content

Commit 2cd20b3

Browse files
pre-commit-ci[bot]TimotheeMathieu
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f39c281 commit 2cd20b3

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
@@ -22,4 +22,4 @@ python:
2222
path: .
2323
extra_requirements:
2424
- docs
25-
- tests
25+
- 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)