Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
44fcf16c
Commit
44fcf16c
authored
Nov 30, 2016
by
Guolin Ke
Browse files
fix travis
parent
3051b771
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
.travis.yml
.travis.yml
+2
-0
python-package/lightgbm/__init__.py
python-package/lightgbm/__init__.py
+2
-3
tests/python_package_test/test_basic.py
tests/python_package_test/test_basic.py
+1
-4
No files found.
.travis.yml
View file @
44fcf16c
...
@@ -21,10 +21,12 @@ script:
...
@@ -21,10 +21,12 @@ script:
-
cd $TRAVIS_BUILD_DIR
-
cd $TRAVIS_BUILD_DIR
-
mkdir build && cd build && cmake .. && make -j
-
mkdir build && cd build && cmake .. && make -j
-
cd $TRAVIS_BUILD_DIR/tests/c_api_test && python test.py
-
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/tests/python_package_test && python test_basic.py
-
cd $TRAVIS_BUILD_DIR
-
cd $TRAVIS_BUILD_DIR
-
rm -rf build && mkdir build && cd build && cmake -DUSE_MPI=ON ..&& make -j
-
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/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/tests/python_package_test && python test_basic.py
notifications
:
notifications
:
...
...
python-package/lightgbm/__init__.py
View file @
44fcf16c
...
@@ -15,9 +15,8 @@ try:
...
@@ -15,9 +15,8 @@ try:
except
ImportError
:
except
ImportError
:
pass
pass
VERSION_FILE
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'VERSION'
)
with
open
(
VERSION_FILE
)
as
f
:
__version__
=
0.1
__version__
=
f
.
read
().
strip
()
__all__
=
[
'Dataset'
,
'Booster'
,
__all__
=
[
'Dataset'
,
'Booster'
,
'train'
,
'cv'
,
'train'
,
'cv'
,
...
...
tests/python_package_test/test_basic.py
View file @
44fcf16c
import
numpy
as
np
import
numpy
as
np
from
sklearn
import
datasets
,
metrics
,
model_selection
from
sklearn
import
datasets
,
metrics
,
model_selection
import
importlib.util
import
lightgbm
as
lgb
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
)
X
,
Y
=
datasets
.
make_classification
(
n_samples
=
100000
,
n_features
=
100
)
X
,
Y
=
datasets
.
make_classification
(
n_samples
=
100000
,
n_features
=
100
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment