Handle the new device parameter in dask and demos. (#9386)
* Handle the new `device` parameter in dask and demos. - Check no ordinal is specified in the dask interface. - Update demos. - Update dask doc. - Update the condition for QDM.
This commit is contained in:
@@ -310,8 +310,8 @@ for more info.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
# Use "gpu_hist" for training the model.
|
||||
reg = xgb.XGBRegressor(tree_method="gpu_hist")
|
||||
# Use "hist" for training the model.
|
||||
reg = xgb.XGBRegressor(tree_method="hist", device="cuda")
|
||||
# Fit the model using predictor X and response y.
|
||||
reg.fit(X, y)
|
||||
# Save model into JSON format.
|
||||
|
||||
Reference in New Issue
Block a user