@@ -208,19 +208,19 @@ def fit(self, X, y=None, sample_weight=None):
208
208
"""
209
209
if self .contamination == "legacy" :
210
210
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 )
214
214
self ._contamination = 0.1
215
215
else :
216
216
self ._contamination = self .contamination
217
217
218
218
if self .behaviour == 'old' :
219
219
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 )
224
224
225
225
X = check_array (X , accept_sparse = ['csc' ])
226
226
if issparse (X ):
@@ -414,7 +414,7 @@ def threshold_(self):
414
414
raise AttributeError ("threshold_ attribute does not exist when "
415
415
"behaviour != 'old'" )
416
416
warn ("threshold_ attribute is deprecated in 0.20 and will"
417
- " be removed in 0.22." , DeprecationWarning )
417
+ " be removed in 0.22." , DeprecationWarning )
418
418
return self ._threshold_
419
419
420
420
0 commit comments