File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 61
61
'permutation_test_score' ,
62
62
'train_test_split' ]
63
63
64
- @ deprecated ( " FitFailedWarning has been moved into the sklearn.exceptions"
65
- " module. It will not be available here from version 0.19" )
66
- class FitFailedWarning ( _FitFailedWarning ):
67
- pass
64
+ FitFailedWarning = deprecated (
65
+ "FitFailedWarning has been moved into the sklearn.exceptions"
66
+ " module. It will not be available here from version 0.19" )(
67
+ _FitFailedWarning )
68
68
69
69
70
70
class _PartitionIterator (with_metaclass (ABCMeta )):
Original file line number Diff line number Diff line change 42
42
from sklearn .metrics import f1_score
43
43
from sklearn .metrics import make_scorer
44
44
from sklearn .metrics import roc_auc_score
45
- from sklearn .exceptions import FitFailedWarning
46
45
from sklearn .exceptions import ChangedBehaviorWarning
47
46
48
47
with warnings .catch_warnings ():
49
48
warnings .simplefilter ('ignore' )
50
49
from sklearn .grid_search import GridSearchCV , RandomizedSearchCV
51
50
from sklearn .grid_search import ParameterGrid , ParameterSampler
52
51
from sklearn .cross_validation import KFold , StratifiedKFold
52
+ from sklearn .cross_validation import FitFailedWarning
53
53
54
54
from sklearn .preprocessing import Imputer
55
55
from sklearn .pipeline import Pipeline
You can’t perform that action at this time.
0 commit comments