Handle np integer in model slice and prediction. (#10007)
This commit is contained in:
@@ -61,7 +61,7 @@ def run_predict_leaf(device: str) -> np.ndarray:
|
||||
|
||||
validate_leaf_output(leaf, num_parallel_tree)
|
||||
|
||||
n_iters = 2
|
||||
n_iters = np.int32(2)
|
||||
sliced = booster.predict(
|
||||
m,
|
||||
pred_leaf=True,
|
||||
|
||||
Reference in New Issue
Block a user