Modernize XGBoost Python document. (#7468)

* Use sphinx gallery to integrate examples.
* Remove mock objects.
* Add dask doc inventory.
This commit is contained in:
Jiaming Yuan
2021-11-23 23:24:52 +08:00
committed by GitHub
parent 96a9848c9e
commit c024c42dce
30 changed files with 130 additions and 84 deletions

View File

@@ -57,13 +57,10 @@ can plot the model and calculate the global feature importance:
The ``scikit-learn`` interface from dask is similar to single node version. The basic
idea is create dataframe with category feature type, and tell XGBoost to use ``gpu_hist``
with parameter ``enable_categorical``. See `this demo
<https://github.com/dmlc/xgboost/blob/master/demo/guide-python/categorical.py>`__ for a
worked example of using categorical data with ``scikit-learn`` interface. A comparison
between using one-hot encoded data and XGBoost's categorical data support can be found
`here
<https://github.com/dmlc/xgboost/blob/master/demo/guide-python/cat_in_the_dat.py>`__.
with parameter ``enable_categorical``. See :ref:`sphx_glr_python_examples_categorical.py`
for a worked example of using categorical data with ``scikit-learn`` interface. A
comparison between using one-hot encoded data and XGBoost's categorical data support can
be found :ref:`sphx_glr_python_examples_cat_in_the_dat.py`.
**********************