XGBoost Python Package
|PyPI version|
We are on PyPI <https://pypi.python.org/pypi/xgboost>
__ now. For
stable version, please install using pip:
pip install xgboost
pip
needs a C++ compiler from the system
to compile the source code on-the-fly. Please follow the following instruction for each
supported platform.gcc
from brew
by
brew tap homebrew/versions; brew install gcc --without-multilib
firstly.gcc
by sudo apt-get install build-essential
firstly
or using the corresponding package manager of the system.For up-to-date version, please install from github.
./build.sh
in the root directory
of projectsetuptools <https://pypi.python.org/pypi/setuptools>
__cd python-package; python setup.py install
from this directory.windows folder <../windows/>
. See also the installation
tutorial <https://www.kaggle.com/c/otto-group-product-classification-challenge/forums/t/13043/run-xgboost-from-windows-and-python>
from Kaggle Otto Forum.import os
os.environ['PATH'] = os.environ['PATH'] + ';C:\Program Files\mingw-w64\x8664-5.3.0-posix-seh-rtv4-rev0\mingw64\bin'
demo
folder <../demo/guide-python>
__example scripts <../demo/kaggle-higgs>
_ for Kaggle
Higgs Challenge, including speedtest
script <../demo/kaggle-higgs/speedtest.py>
_ on this dataset.homebrew <http://brew.sh/>
__
brew tap homebrew/versions; brew install gcc --without-multilib
make no_omp=1
. Otherwise, use the forkserver (in
Python 3.4) or spawn backend. See the
sklearn\_parallel.py <../demo/guide-python/sklearn_parallel.py>
__
demo... |PyPI version| image:: https://badge.fury.io/py/xgboost.svg :target: http://badge.fury.io/py/xgboost