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 8
8
from collections import Counter
9
9
10
10
import numpy as np
11
- from six import string_types
12
11
from sklearn .base import BaseEstimator
13
12
from sklearn .externals import six
14
13
from sklearn .utils import check_X_y
@@ -204,7 +203,7 @@ def _validate_ratio(self):
204
203
elif self .ratio <= 0 :
205
204
raise ValueError ('Ratio cannot be negative.' )
206
205
207
- elif isinstance (self .ratio , string_types ):
206
+ elif isinstance (self .ratio , six . string_types ):
208
207
if self .ratio != 'auto' :
209
208
raise ValueError ('Unknown string for the parameter ratio.' )
210
209
else :
Original file line number Diff line number Diff line change 6
6
from collections import Counter
7
7
8
8
import numpy as np
9
- from six import string_types
10
9
import sklearn
11
10
from sklearn .base import ClassifierMixin
12
11
from sklearn .ensemble import RandomForestClassifier
12
+ from sklearn .externals .six import string_types
13
13
14
14
from ..base import BaseBinarySampler
15
15
You can’t perform that action at this time.
0 commit comments