File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 88from collections import Counter
99
1010import numpy as np
11- from six import string_types
1211from sklearn .base import BaseEstimator
1312from sklearn .externals import six
1413from sklearn .utils import check_X_y
@@ -204,7 +203,7 @@ def _validate_ratio(self):
204203 elif self .ratio <= 0 :
205204 raise ValueError ('Ratio cannot be negative.' )
206205
207- elif isinstance (self .ratio , string_types ):
206+ elif isinstance (self .ratio , six . string_types ):
208207 if self .ratio != 'auto' :
209208 raise ValueError ('Unknown string for the parameter ratio.' )
210209 else :
Original file line number Diff line number Diff line change 66from collections import Counter
77
88import numpy as np
9- from six import string_types
109import sklearn
1110from sklearn .base import ClassifierMixin
1211from sklearn .ensemble import RandomForestClassifier
12+ from sklearn .externals .six import string_types
1313
1414from ..base import BaseBinarySampler
1515
You can’t perform that action at this time.
0 commit comments