Skip to content

Commit 575fba6

Browse files
authored
[backport] [CI] Fix CI with updated dependencies. (dmlc#8631) (dmlc#8635)
1 parent 62ed8b5 commit 575fba6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

jvm-packages/xgboost4j-tester/get_iris.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
from sklearn.datasets import load_iris
21
import numpy as np
32
import pandas
3+
from sklearn.datasets import load_iris
44

55
X, y = load_iris(return_X_y=True)
6-
y = y.astype(np.int)
6+
y = y.astype(np.int32)
77
df = pandas.DataFrame(data=X, columns=['sepal length', 'sepal width', 'petal length', 'petal width'])
88
class_id_to_name = {0:'Iris-setosa', 1:'Iris-versicolor', 2:'Iris-virginica'}
99
df['class'] = np.vectorize(class_id_to_name.get)(y)

tests/python/test_with_shap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
try:
66
import shap
7-
except ImportError:
7+
except Exception:
88
shap = None
99
pass
1010

0 commit comments

Comments
 (0)