2015-08-01 11:27:13 -07:00
Python API Reference
====================
2021-05-11 06:44:36 -06:00
This page gives the Python API reference of xgboost, please also refer to Python Package Introduction for more information about the Python package.
2015-08-01 13:47:41 -07:00
2018-08-22 18:59:30 -07:00
.. contents ::
:backlinks: none
:local:
2020-12-03 00:05:18 -08:00
Global Configuration
--------------------
.. autofunction :: xgboost.config_context
.. autofunction :: xgboost.set_config
.. autofunction :: xgboost.get_config
2015-08-01 11:27:13 -07:00
Core Data Structure
-------------------
.. automodule :: xgboost.core
.. autoclass :: xgboost.DMatrix
:members:
:show-inheritance:
2020-04-01 23:34:32 +13:00
.. autoclass :: xgboost.DeviceQuantileDMatrix
:show-inheritance:
2015-08-01 11:27:13 -07:00
.. autoclass :: xgboost.Booster
:members:
:show-inheritance:
Learning API
------------
.. automodule :: xgboost.training
.. autofunction :: xgboost.train
.. autofunction :: xgboost.cv
Scikit-Learn API
----------------
.. automodule :: xgboost.sklearn
.. autoclass :: xgboost.XGBRegressor
:members:
2018-08-22 18:59:30 -07:00
:inherited-members:
2015-08-01 11:27:13 -07:00
:show-inheritance:
.. autoclass :: xgboost.XGBClassifier
:members:
2018-08-22 18:59:30 -07:00
:inherited-members:
:show-inheritance:
.. autoclass :: xgboost.XGBRanker
:members:
:inherited-members:
2015-08-01 11:27:13 -07:00
:show-inheritance:
2019-05-25 18:30:24 +12:00
.. autoclass :: xgboost.XGBRFRegressor
:members:
:inherited-members:
:show-inheritance:
.. autoclass :: xgboost.XGBRFClassifier
:members:
:inherited-members:
:show-inheritance:
2015-08-11 16:40:09 +09:00
Plotting API
------------
.. automodule :: xgboost.plotting
.. autofunction :: xgboost.plot_importance
.. autofunction :: xgboost.plot_tree
.. autofunction :: xgboost.to_graphviz
2018-09-07 23:51:26 +03:00
.. _callback_api:
Callback API
------------
2022-01-05 03:21:25 +08:00
.. automodule :: xgboost.callback
.. autoclass :: xgboost.callback.TrainingCallback
:members:
2018-09-07 23:51:26 +03:00
2022-01-05 03:21:25 +08:00
.. autoclass :: xgboost.callback.EvaluationMonitor
:members:
:inherited-members:
:show-inheritance:
2018-09-07 23:51:26 +03:00
2022-01-05 03:21:25 +08:00
.. autoclass :: xgboost.callback.EarlyStopping
:members:
:inherited-members:
:show-inheritance:
2018-09-07 23:51:26 +03:00
2022-01-05 03:21:25 +08:00
.. autoclass :: xgboost.callback.LearningRateScheduler
:members:
:inherited-members:
:show-inheritance:
2020-11-12 17:51:32 +08:00
2022-01-05 03:21:25 +08:00
.. autoclass :: xgboost.callback.TrainingCheckPoint
:members:
:inherited-members:
:show-inheritance:
2019-05-27 13:29:28 +12:00
2019-05-28 16:39:26 +12:00
.. _dask_api:
2019-05-27 13:29:28 +12:00
Dask API
--------
.. automodule :: xgboost.dask
2021-02-09 09:20:58 +08:00
.. autoclass :: xgboost.dask.DaskDMatrix
:members:
:inherited-members:
:show-inheritance:
2019-05-27 13:29:28 +12:00
2021-02-09 09:20:58 +08:00
.. autoclass :: xgboost.dask.DaskDeviceQuantileDMatrix
:members:
:inherited-members:
:show-inheritance:
2020-08-05 00:48:10 +08:00
2019-12-23 18:55:32 +08:00
.. autofunction :: xgboost.dask.train
2019-09-25 01:30:14 -04:00
.. autofunction :: xgboost.dask.predict
2019-05-27 13:29:28 +12:00
2020-11-12 17:51:32 +08:00
.. autofunction :: xgboost.dask.inplace_predict
2021-02-09 09:20:58 +08:00
.. autoclass :: xgboost.dask.DaskXGBClassifier
:members:
:inherited-members:
:show-inheritance:
2019-05-28 16:39:26 +12:00
2021-02-09 09:20:58 +08:00
.. autoclass :: xgboost.dask.DaskXGBRegressor
:members:
:inherited-members:
:show-inheritance:
2021-01-13 20:59:20 +08:00
2021-02-09 09:20:58 +08:00
.. autoclass :: xgboost.dask.DaskXGBRanker
:members:
:inherited-members:
:show-inheritance:
2021-01-13 20:59:20 +08:00
2021-02-09 09:20:58 +08:00
.. autoclass :: xgboost.dask.DaskXGBRFRegressor
:members:
:inherited-members:
:show-inheritance:
2021-01-13 20:59:20 +08:00
2021-02-09 09:20:58 +08:00
.. autoclass :: xgboost.dask.DaskXGBRFClassifier
:members:
:inherited-members:
:show-inheritance:
2022-07-17 10:46:09 +08:00
PySpark API
-----------
.. automodule :: xgboost.spark
.. autoclass :: xgboost.spark.SparkXGBClassifier
:members:
:inherited-members:
:show-inheritance:
.. autoclass :: xgboost.spark.SparkXGBClassifierModel
:members:
:inherited-members:
:show-inheritance:
.. autoclass :: xgboost.spark.SparkXGBRegressor
:members:
:inherited-members:
:show-inheritance:
.. autoclass :: xgboost.spark.SparkXGBRegressorModel
:members:
:inherited-members:
:show-inheritance: