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
eedc1a7f
Unverified
Commit
eedc1a7f
authored
Apr 25, 2020
by
James Lamb
Committed by
GitHub
Apr 25, 2020
Browse files
[python][tests] unused and missing imports (#3023)
parent
1f3e72c4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
2 deletions
+1
-2
tests/c_api_test/test_.py
tests/c_api_test/test_.py
+0
-1
tests/python_package_test/test_engine.py
tests/python_package_test/test_engine.py
+0
-1
tests/python_package_test/test_sklearn.py
tests/python_package_test/test_sklearn.py
+1
-0
No files found.
tests/c_api_test/test_.py
View file @
eedc1a7f
# coding: utf-8
# coding: utf-8
import
ctypes
import
ctypes
import
os
import
os
import
sys
from
platform
import
system
from
platform
import
system
...
...
tests/python_package_test/test_engine.py
View file @
eedc1a7f
...
@@ -1857,7 +1857,6 @@ class TestEngine(unittest.TestCase):
...
@@ -1857,7 +1857,6 @@ class TestEngine(unittest.TestCase):
self
.
assertEqual
(
len
(
set
([
iter_valid1_l1
,
iter_valid1_l2
,
iter_valid2_l1
,
iter_valid2_l2
])),
4
)
self
.
assertEqual
(
len
(
set
([
iter_valid1_l1
,
iter_valid1_l2
,
iter_valid2_l1
,
iter_valid2_l2
])),
4
)
iter_min_l1
=
min
([
iter_valid1_l1
,
iter_valid2_l1
])
iter_min_l1
=
min
([
iter_valid1_l1
,
iter_valid2_l1
])
iter_min_l2
=
min
([
iter_valid1_l2
,
iter_valid2_l2
])
iter_min_l2
=
min
([
iter_valid1_l2
,
iter_valid2_l2
])
iter_min
=
min
([
iter_min_l1
,
iter_min_l2
])
iter_min_valid1
=
min
([
iter_valid1_l1
,
iter_valid1_l2
])
iter_min_valid1
=
min
([
iter_valid1_l1
,
iter_valid1_l2
])
iter_cv_l1
=
4
iter_cv_l1
=
4
...
...
tests/python_package_test/test_sklearn.py
View file @
eedc1a7f
...
@@ -4,6 +4,7 @@ import joblib
...
@@ -4,6 +4,7 @@ import joblib
import
math
import
math
import
os
import
os
import
unittest
import
unittest
import
warnings
import
lightgbm
as
lgb
import
lightgbm
as
lgb
import
numpy
as
np
import
numpy
as
np
...
...
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