Skip to main content

XGBoost Python Package ====================== |PyPI version| |PyPI downloads| Installation ------------ We are on `PyPI <>`__ now. For stable version, please install using pip: - ``pip install xgboost`` - Note for windows users: this pip installation may not work on some windows environment, and it may cause unexpected errors. pip installation on windows is currently disabled for further invesigation, please install from github. For up-to-date version, please install from github. - To make the python module, type ``./`` in the root directory of project - Make sure you have `setuptools <>`__ - Install with ``python install`` from this directory. - For windows users, please use the Visual Studio project file under `windows folder <../windows/>`__. See also the `installation tutorial <>`__ from Kaggle Otto Forum. Examples -------- - Refer also to the walk through example in `demo folder <../demo/guide-python>`__ - See also the `example scripts <../demo/kaggle-higgs>`__ for Kaggle Higgs Challenge, including `speedtest script <../demo/kaggle-higgs/>`__ on this dataset. Note ---- - If you want to build xgboost on Mac OS X with multiprocessing support where clang in XCode by default doesn't support, please install gcc 4.9 or higher using `homebrew <>`__ ``brew tap homebrew/versions; brew install gcc49`` - If you want to run XGBoost process in parallel using the fork backend for joblib/multiprocessing, you must build XGBoost without support for OpenMP by ``make no_omp=1``. Otherwise, use the forkserver (in Python 3.4) or spawn backend. See the `sklearn\ <../demo/guide-python/>`__ demo. .. |PyPI version| image:: :target: .. |PyPI downloads| image:: :target:

Project description

<img src= width=135/> eXtreme Gradient Boosting
[![Build Status](](
[![Documentation Status](](
[![CRAN Status Badge](](
[![PyPI version](](
[![Gitter chat for developers at](](

An optimized general purpose gradient boosting library. The library is parallelized, and also provides an optimized distributed version.

It implements machine learning algorithms under the [Gradient Boosting]( framework, including [Generalized Linear Model]( (GLM) and [Gradient Boosted Decision Trees]( (GBDT). XGBoost can also be [distributed](#features) and scale to Terascale data

XGBoost is part of [Distributed Machine Learning Common]( <img src=> projects

* [What's New](#whats-new)
* [Version](#version)
* [Documentation](doc/
* [Build Instruction](doc/
* [Features](#features)
* [Distributed XGBoost](multi-node)
* [Usecases](doc/
* [Bug Reporting](#bug-reporting)
* [Contributing to XGBoost](#contributing-to-xgboost)
* [Committers and Contributors](
* [License](#license)
* [XGBoost in Graphlab Create](#xgboost-in-graphlab-create)

What's New

* XGBoost helps Owen Zhang to win the [Avito Context Ad Click competition]( Check out the [interview from Kaggle](
* XGBoost helps Chenglong Chen to win [Kaggle CrowdFlower Competition](
Check out the [winning solution](
* XGBoost-0.4 release, see [](
* XGBoost helps three champion teams to win [WWW2015 Microsoft Malware Classification Challenge (BIG 2015)](
Check out the [winning solution](doc/
* [External Memory Version](doc/


* Current version xgboost-0.4
- [Change log](
- This version is compatible with 0.3x versions

* Easily accessible through CLI, [python](,
* Its fast! Benchmark numbers comparing xgboost, H20, Spark, R - [benchm-ml numbers](
* Memory efficient - Handles sparse matrices, supports external memory
* Accurate prediction, and used extensively by data scientists and kagglers - [highlight links](
* Distributed version runs on Hadoop (YARN), MPI, SGE etc., scales to billions of examples.

Bug Reporting

* For reporting bugs please use the [xgboost/issues]( page.
* For generic questions or to share your experience using xgboost please use the [XGBoost User Group](!forum/xgboost-user/)

Contributing to XGBoost

XGBoost has been developed and used by a group of active community members. Everyone is more than welcome to contribute. It is a way to make the project better and more accessible to more users.
* Check out [Feature Wish List]( to see what can be improved, or open an issue if you want something.
* Contribute to the [documents and examples]( to share your experience with other users.
* Please add your name to []( after your patch has been merged.

© Contributors, 2015. Licensed under an [Apache-2]( license.

XGBoost in Graphlab Create
* XGBoost is adopted as part of boosted tree toolkit in Graphlab Create (GLC). Graphlab Create is a powerful python toolkit that allows you to do data manipulation, graph processing, hyper-parameter search, and visualization of TeraBytes scale data in one framework. Try the [Graphlab Create](
* Nice [blogpost]( by Jay Gu about using GLC boosted tree to solve kaggle bike sharing challenge:

Project details

Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xgboost-0.4a27.tar.gz (756.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page