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
1a294c87
Unverified
Commit
1a294c87
authored
Feb 15, 2021
by
Zhuyi Xue
Committed by
GitHub
Feb 15, 2021
Browse files
[ci][python] apply isort to tests/python_package_test/test_dask.py #3958 (#3979)
parent
a630da3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
tests/python_package_test/test_dask.py
tests/python_package_test/test_dask.py
+5
-4
No files found.
tests/python_package_test/test_dask.py
View file @
1a294c87
...
@@ -8,8 +8,10 @@ from itertools import groupby
...
@@ -8,8 +8,10 @@ from itertools import groupby
from
os
import
getenv
from
os
import
getenv
from
sys
import
platform
from
sys
import
platform
import
lightgbm
as
lgb
import
pytest
import
pytest
import
lightgbm
as
lgb
if
not
platform
.
startswith
(
'linux'
):
if
not
platform
.
startswith
(
'linux'
):
pytest
.
skip
(
'lightgbm.dask is currently supported in Linux environments'
,
allow_module_level
=
True
)
pytest
.
skip
(
'lightgbm.dask is currently supported in Linux environments'
,
allow_module_level
=
True
)
if
not
lgb
.
compat
.
DASK_INSTALLED
:
if
not
lgb
.
compat
.
DASK_INSTALLED
:
...
@@ -21,16 +23,15 @@ import dask.dataframe as dd
...
@@ -21,16 +23,15 @@ import dask.dataframe as dd
import
joblib
import
joblib
import
numpy
as
np
import
numpy
as
np
import
pandas
as
pd
import
pandas
as
pd
from
scipy.stats
import
spearmanr
from
dask.array.utils
import
assert_eq
from
dask.array.utils
import
assert_eq
from
dask.distributed
import
default_client
,
Client
,
LocalCluster
,
wait
from
dask.distributed
import
Client
,
LocalCluster
,
default_client
,
wait
from
distributed.utils_test
import
client
,
cluster_fixture
,
gen_cluster
,
loop
from
distributed.utils_test
import
client
,
cluster_fixture
,
gen_cluster
,
loop
from
scipy.sparse
import
csr_matrix
from
scipy.sparse
import
csr_matrix
from
scipy.stats
import
spearmanr
from
sklearn.datasets
import
make_blobs
,
make_regression
from
sklearn.datasets
import
make_blobs
,
make_regression
from
.utils
import
make_ranking
from
.utils
import
make_ranking
# time, in seconds, to wait for the Dask client to close. Used to avoid teardown errors
# time, in seconds, to wait for the Dask client to close. Used to avoid teardown errors
# see https://distributed.dask.org/en/latest/api.html#distributed.Client.close
# see https://distributed.dask.org/en/latest/api.html#distributed.Client.close
CLIENT_CLOSE_TIMEOUT
=
120
CLIENT_CLOSE_TIMEOUT
=
120
...
...
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