:orphan: XGBoost Python Feature Walkthrough ================================== This is a collection of examples for using the XGBoost Python package. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_sklearn_parallel_thumb.png :alt: :ref:`sphx_glr_python_examples_sklearn_parallel.py` .. raw:: html
Demo for using xgboost with sklearn
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_predict_leaf_indices_thumb.png :alt: :ref:`sphx_glr_python_examples_predict_leaf_indices.py` .. raw:: html
Demo for obtaining leaf index
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_evals_result_thumb.png :alt: :ref:`sphx_glr_python_examples_evals_result.py` .. raw:: html
This script demonstrate how to access the eval metrics
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_gamma_regression_thumb.png :alt: :ref:`sphx_glr_python_examples_gamma_regression.py` .. raw:: html
Demo for gamma regression
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_boost_from_prediction_thumb.png :alt: :ref:`sphx_glr_python_examples_boost_from_prediction.py` .. raw:: html
Demo for boosting from prediction
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_sklearn_evals_result_thumb.png :alt: :ref:`sphx_glr_python_examples_sklearn_evals_result.py` .. raw:: html
Demo for accessing the xgboost eval metrics by using sklearn interface
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_feature_weights_thumb.png :alt: :ref:`sphx_glr_python_examples_feature_weights.py` .. raw:: html
Demo for using feature weight to change column sampling
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_generalized_linear_model_thumb.png :alt: :ref:`sphx_glr_python_examples_generalized_linear_model.py` .. raw:: html
Demo for GLM
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_predict_first_ntree_thumb.png :alt: :ref:`sphx_glr_python_examples_predict_first_ntree.py` .. raw:: html
Demo for prediction using number of trees
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_basic_walkthrough_thumb.png :alt: :ref:`sphx_glr_python_examples_basic_walkthrough.py` .. raw:: html
Getting started with XGBoost
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_sklearn_examples_thumb.png :alt: :ref:`sphx_glr_python_examples_sklearn_examples.py` .. raw:: html
Collection of examples for using sklearn interface
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_categorical_thumb.png :alt: :ref:`sphx_glr_python_examples_categorical.py` .. raw:: html
Getting started with categorical data
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_cross_validation_thumb.png :alt: :ref:`sphx_glr_python_examples_cross_validation.py` .. raw:: html
Demo for using cross validation
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_update_process_thumb.png :alt: :ref:`sphx_glr_python_examples_update_process.py` .. raw:: html
Demo for using process_type with prune and refresh
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_individual_trees_thumb.png :alt: :ref:`sphx_glr_python_examples_individual_trees.py` .. raw:: html
Demo for prediction using individual trees and model slices
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_spark_estimator_examples_thumb.png :alt: :ref:`sphx_glr_python_examples_spark_estimator_examples.py` .. raw:: html
Collection of examples for using xgboost.spark estimator interface
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_quantile_data_iterator_thumb.png :alt: :ref:`sphx_glr_python_examples_quantile_data_iterator.py` .. raw:: html
Demo for using data iterator with Quantile DMatrix
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_cat_in_the_dat_thumb.png :alt: :ref:`sphx_glr_python_examples_cat_in_the_dat.py` .. raw:: html
Train XGBoost with cat_in_the_dat dataset
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_multioutput_regression_thumb.png :alt: :ref:`sphx_glr_python_examples_multioutput_regression.py` .. raw:: html
A demo for multi-output regression
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_quantile_regression_thumb.png :alt: :ref:`sphx_glr_python_examples_quantile_regression.py` .. raw:: html
Quantile Regression
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_continuation_thumb.png :alt: :ref:`sphx_glr_python_examples_continuation.py` .. raw:: html
Demo for training continuation
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_cat_pipeline_thumb.png :alt: :ref:`sphx_glr_python_examples_cat_pipeline.py` .. raw:: html
Feature engineering pipeline for categorical data
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_callbacks_thumb.png :alt: :ref:`sphx_glr_python_examples_callbacks.py` .. raw:: html
Demo for using and defining callback functions
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_external_memory_thumb.png :alt: :ref:`sphx_glr_python_examples_external_memory.py` .. raw:: html
Experimental support for external memory
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_custom_softmax_thumb.png :alt: :ref:`sphx_glr_python_examples_custom_softmax.py` .. raw:: html
Demo for creating customized multi-class objective function
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_learning_to_rank_thumb.png :alt: :ref:`sphx_glr_python_examples_learning_to_rank.py` .. raw:: html
Getting started with learning to rank
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_custom_rmsle_thumb.png :alt: :ref:`sphx_glr_python_examples_custom_rmsle.py` .. raw:: html
Demo for defining a custom regression objective and metric
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_distributed_extmem_basic_thumb.png :alt: :ref:`sphx_glr_python_examples_distributed_extmem_basic.py` .. raw:: html
Experimental support for distributed training with external memory
.. raw:: html
.. only:: html .. image:: /python/examples/images/thumb/sphx_glr_model_parser_thumb.png :alt: :ref:`sphx_glr_python_examples_model_parser.py` .. raw:: html
Demonstration for parsing JSON/UBJSON tree model files
.. thumbnail-parent-div-close .. raw:: html
.. toctree:: :hidden: /python/examples/sklearn_parallel /python/examples/predict_leaf_indices /python/examples/evals_result /python/examples/gamma_regression /python/examples/boost_from_prediction /python/examples/sklearn_evals_result /python/examples/feature_weights /python/examples/generalized_linear_model /python/examples/predict_first_ntree /python/examples/basic_walkthrough /python/examples/sklearn_examples /python/examples/categorical /python/examples/cross_validation /python/examples/update_process /python/examples/individual_trees /python/examples/spark_estimator_examples /python/examples/quantile_data_iterator /python/examples/cat_in_the_dat /python/examples/multioutput_regression /python/examples/quantile_regression /python/examples/continuation /python/examples/cat_pipeline /python/examples/callbacks /python/examples/external_memory /python/examples/custom_softmax /python/examples/learning_to_rank /python/examples/custom_rmsle /python/examples/distributed_extmem_basic /python/examples/model_parser .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-gallery .. container:: sphx-glr-download sphx-glr-download-python :download:`Download all examples in Python source code: examples_python.zip ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download all examples in Jupyter notebooks: examples_jupyter.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_