8000 fix indentation · scikit-learn/scikit-learn@db45167 · GitHub
[go: up one dir, main page]

Skip to content

Commit db45167

Browse files
committed
fix indentation
1 parent dcb585d commit db45167

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

sklearn/ensemble/iforest.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -208,19 +208,19 @@ def fit(self, X, y=None, sample_weight=None):
208208
"""
209209
if self.contamination == "legacy":
210210
warn('default contamination parameter 0.1 will change '
211-
'in version 0.22 to "auto". This will change the '
212-
'predict method behavior.',
213-
FutureWarning)
211+
'in version 0.22 to "auto". This will change the '
212+
'predict method behavior.',
213+
FutureWarning)
214214
self._contamination = 0.1
215215
else:
216216
self._contamination = self.contamination
217217

218218
if self.behaviour == 'old':
219219
warn('behaviour="old" is deprecated and will be removed '
220-
'in version 0.22. Please use behaviour="new", which '
221-
'makes the decision_function change to match '
222-
'other anomaly detection algorithm API.',
223-
FutureWarning)
220+
'in version 0.22. Please use behaviour="new", which '
221+
'makes the decision_function change to match '
222+
'other anomaly detection algorithm API.',
223+
FutureWarning)
224224

225225
X = check_array(X, accept_sparse=['csc'])
226226
if issparse(X):
@@ -414,7 +414,7 @@ def threshold_(self):
414414
raise AttributeError("threshold_ attribute does not exist when "
415415
"behaviour != 'old'")
416416
warn("threshold_ attribute is deprecated in 0.20 and will"
417-
" be removed in 0.22.", DeprecationWarning)
417+
" be removed in 0.22.", DeprecationWarning)
418418
return self._threshold_
419419

420420

0 commit comments

Comments
 (0)
0