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.
2 parents cb38e56 + d60116a commit f1a3bb3Copy full SHA for f1a3bb3
tests/test_xgboost.py
@@ -1,9 +1,16 @@
1
import unittest
2
3
+import xgboost
4
+
5
+from distutils.version import StrictVersion
6
from sklearn import datasets
7
from xgboost import XGBClassifier
8
9
class TestXGBoost(unittest.TestCase):
10
+ def test_version(self):
11
+ # b/175051617 prevent xgboost version downgrade.
12
+ self.assertGreaterEqual(StrictVersion(xgboost.__version__), StrictVersion("1.2.1"))
13
14
def test_classifier(self):
15
boston = datasets.load_boston()
16
X, y = boston.data, boston.target
0 commit comments