зеркало из https://github.com/microsoft/LightGBM.git
fix travis
This commit is contained in:
Родитель
3051b77118
Коммит
44fcf16c6f
|
@ -21,10 +21,12 @@ script:
|
|||
- cd $TRAVIS_BUILD_DIR
|
||||
- mkdir build && cd build && cmake .. && make -j
|
||||
- cd $TRAVIS_BUILD_DIR/tests/c_api_test && python test.py
|
||||
- cd $TRAVIS_BUILD_DIR/python-package && python setup.py install
|
||||
- cd $TRAVIS_BUILD_DIR/tests/python_package_test && python test_basic.py
|
||||
- cd $TRAVIS_BUILD_DIR
|
||||
- rm -rf build && mkdir build && cd build && cmake -DUSE_MPI=ON ..&& make -j
|
||||
- cd $TRAVIS_BUILD_DIR/tests/c_api_test && python test.py
|
||||
- cd $TRAVIS_BUILD_DIR/python-package && python setup.py install
|
||||
- cd $TRAVIS_BUILD_DIR/tests/python_package_test && python test_basic.py
|
||||
|
||||
notifications:
|
||||
|
|
|
@ -15,9 +15,8 @@ try:
|
|||
except ImportError:
|
||||
pass
|
||||
|
||||
VERSION_FILE = os.path.join(os.path.dirname(__file__), 'VERSION')
|
||||
with open(VERSION_FILE) as f:
|
||||
__version__ = f.read().strip()
|
||||
|
||||
__version__ = 0.1
|
||||
|
||||
__all__ = ['Dataset', 'Booster',
|
||||
'train', 'cv',
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
import numpy as np
|
||||
from sklearn import datasets, metrics, model_selection
|
||||
import importlib.util
|
||||
spec = importlib.util.spec_from_file_location("module.name", "../../python-package/lightgbm/basic.py")
|
||||
lgb = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(lgb)
|
||||
import lightgbm as lgb
|
||||
|
||||
|
||||
X, Y = datasets.make_classification(n_samples=100000, n_features=100)
|
||||
|
|
Загрузка…
Ссылка в новой задаче