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
4e9b589b
Commit
4e9b589b
authored
Aug 07, 2017
by
Guolin Ke
Browse files
update tests.
parent
09ac3485
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7004 additions
and
5 deletions
+7004
-5
tests/cpp_test/predict.conf
tests/cpp_test/predict.conf
+1
-1
tests/cpp_test/train.conf
tests/cpp_test/train.conf
+3
-1
tests/data/categorical.data
tests/data/categorical.data
+7000
-0
tests/python_package_test/test_basic.py
tests/python_package_test/test_basic.py
+0
-3
No files found.
tests/cpp_test/predict.conf
View file @
4e9b589b
data
=../
../
examples
/
regression
/
regression
.
test
data
=../
data
/
categorical
.
data
input_model
=
LightGBM_model
.
txt
...
...
tests/cpp_test/train.conf
View file @
4e9b589b
data
=../../
examples
/
regression
/
regression
.
train
data
=../
data
/
categorical
.
data
app
=
binary
num_trees
=
10
...
...
tests/data/categorical.data
0 → 100644
View file @
4e9b589b
This source diff could not be displayed because it is too large. You can
view the blob
instead.
tests/python_package_test/test_basic.py
View file @
4e9b589b
...
...
@@ -60,6 +60,3 @@ class TestBasic(unittest.TestCase):
for
preds
in
zip
(
pred_early_stopping
,
pred_from_matr
):
# scores likely to be different, but prediction should still be the same
self
.
assertEqual
(
preds
[
0
]
>
0
,
preds
[
1
]
>
0
)
# check pmml
subprocess
.
call
([
'python'
,
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
'../../pmml/pmml.py'
),
'model.txt'
])
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