Fixes for numpy 2.0. (#10252)
This commit is contained in:
@@ -84,7 +84,7 @@ def main(tmpdir: str) -> xgboost.Booster:
|
||||
it = Iterator(files)
|
||||
# For non-data arguments, specify it here once instead of passing them by the `next`
|
||||
# method.
|
||||
missing = np.NaN
|
||||
missing = np.nan
|
||||
Xy = xgboost.DMatrix(it, missing=missing, enable_categorical=False)
|
||||
|
||||
# ``approx`` is also supported, but less efficient due to sketching. GPU behaves
|
||||
|
||||
Reference in New Issue
Block a user