forked from dmlc/xgboost
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python package refactor into python-package
- Loading branch information
Showing
13 changed files
with
88 additions
and
678 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
*.libsvm | ||
*.libsvm | ||
*.pkl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
build | ||
dist | ||
*.egg* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
XGBoost Python Package | ||
====================== | ||
* To make the python module, type ```./build.sh``` in the root directory of project | ||
* Make sure you have [setuptools](https://pypi.python.org/pypi/setuptools) | ||
* Install with `python setup.py install` from this directory. | ||
* Refer also to the walk through example in [demo folder](../demo/guide-python) | ||
* **NOTE**: 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_parallel.py demo. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# pylint: disable=invalid-name | ||
"""Setup xgboost package.""" | ||
from __future__ import absolute_import | ||
import sys | ||
from setuptools import setup | ||
sys.path.insert(0, '.') | ||
import xgboost | ||
|
||
LIB_PATH = xgboost.core.find_lib_path() | ||
|
||
setup(name='xgboost', | ||
version=xgboost.__version__, | ||
description=xgboost.__doc__, | ||
install_requires=[ | ||
'numpy', | ||
'scipy', | ||
], | ||
zip_safe=False, | ||
packages=['xgboost'], | ||
data_files=[('xgboost', [LIB_PATH[0]])], | ||
url='https://github.com/dmlc/xgboost') |
Oops, something went wrong.