Skip to content

Commit

Permalink
[dask] fix Dask import order (#3788)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb authored Jan 19, 2021
1 parent a292766 commit 4007b34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions python-package/lightgbm/dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

import numpy as np
import pandas as pd
import scipy.sparse as ss

from dask import array as da
from dask import dataframe as dd
from dask import delayed
Expand All @@ -20,8 +22,6 @@
from .basic import _LIB, _safe_call
from .sklearn import LGBMClassifier, LGBMRegressor

import scipy.sparse as ss

logger = logging.getLogger(__name__)


Expand Down
4 changes: 2 additions & 2 deletions tests/python_package_test/test_dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def test_training_does_not_fail_on_port_conflicts(client):
n_estimators=5,
num_leaves=5
)
for i in range(5):
for _ in range(5):
dask_classifier.fit(
X=dX,
y=dy,
Expand Down Expand Up @@ -204,7 +204,7 @@ def test_regressor_quantile(output, client, listen_port, alpha):


def test_regressor_local_predict(client, listen_port):
X, y, w, dX, dy, dw = _create_data('regression', output='array')
X, y, _, dX, dy, dw = _create_data('regression', output='array')

dask_regressor = dlgbm.DaskLGBMRegressor(
local_listen_port=listen_port,
Expand Down

0 comments on commit 4007b34

Please sign in to comment.