We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0bf83b commit 6fc2a37Copy full SHA for 6fc2a37
imblearn/metrics/tests/test_score_objects.py
@@ -10,8 +10,8 @@
10
geometric_mean_score,
11
make_index_balanced_accuracy)
12
# Get the version
13
-(major, minor, _) = sklearn.__version__.split('.')
14
-if int(minor) < 18:
+sk_version = sklearn.__version__
+if sk_version < '0.18':
15
from sklearn.cross_validation import train_test_split
16
from sklearn.grid_search import GridSearchCV
17
else:
0 commit comments