Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.

Commit 5a840af

Browse files
authored
remove Dataset.num_blocks() usages (#307)
Signed-off-by: Scott Lee <sjl@anyscale.com>
1 parent 7cf815b commit 5a840af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xgboost_ray/data_sources/ray_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ def get_n(data: "ray.data.dataset.Dataset"):
107107
"""
108108
Return number of distributed blocks.
109109
"""
110-
return data.num_blocks()
110+
return data._plan.initial_num_blocks()

0 commit comments

Comments
 (0)