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
0c5f46f8
"include/vscode:/vscode.git/clone" did not exist on "7e34d23c05599ce3a8a6f22cdba29e103f57d218"
Unverified
Commit
0c5f46f8
authored
Nov 03, 2022
by
James Lamb
Committed by
GitHub
Nov 03, 2022
Browse files
[python-package] remove unused imports (#5559)
parent
9047604b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
python-package/lightgbm/dask.py
python-package/lightgbm/dask.py
+4
-4
python-package/lightgbm/sklearn.py
python-package/lightgbm/sklearn.py
+1
-1
No files found.
python-package/lightgbm/dask.py
View file @
0c5f46f8
...
@@ -17,13 +17,13 @@ from urllib.parse import urlparse
...
@@ -17,13 +17,13 @@ from urllib.parse import urlparse
import
numpy
as
np
import
numpy
as
np
import
scipy.sparse
as
ss
import
scipy.sparse
as
ss
from
.basic
import
LightGBMError
,
_choose_param_value
,
_ConfigAliases
,
_log_info
,
_log_warning
,
_safe_call
from
.basic
import
LightGBMError
,
_choose_param_value
,
_ConfigAliases
,
_log_info
,
_log_warning
from
.compat
import
(
DASK_INSTALLED
,
PANDAS_INSTALLED
,
SKLEARN_INSTALLED
,
Client
,
LGBMNotFittedError
,
concat
,
from
.compat
import
(
DASK_INSTALLED
,
PANDAS_INSTALLED
,
SKLEARN_INSTALLED
,
Client
,
LGBMNotFittedError
,
concat
,
dask_Array
,
dask_array_from_delayed
,
dask_bag_from_delayed
,
dask_DataFrame
,
dask_Series
,
dask_Array
,
dask_array_from_delayed
,
dask_bag_from_delayed
,
dask_DataFrame
,
dask_Series
,
default_client
,
delayed
,
pd_DataFrame
,
pd_Series
,
wait
)
default_client
,
delayed
,
pd_DataFrame
,
pd_Series
,
wait
)
from
.sklearn
import
(
LGBMClassifier
,
LGBMModel
,
LGBMRanker
,
LGBMRegressor
,
_LGBM_ScikitCustom
Eval
Function
,
from
.sklearn
import
(
LGBMClassifier
,
LGBMModel
,
LGBMRanker
,
LGBMRegressor
,
_LGBM_ScikitCustom
Objective
Function
,
_LGBM_ScikitCustomObjectiveFunction
,
_LGBM_ScikitEvalMetricType
,
_lgbmmodel_doc_custom_eval_note
,
_LGBM_ScikitEvalMetricType
,
_lgbmmodel_doc_custom_eval_note
,
_lgbmmodel_doc_fit
,
_lgbmmodel_doc_fit
,
_lgbmmodel_doc_predict
)
_lgbmmodel_doc_predict
)
_DaskCollection
=
Union
[
dask_Array
,
dask_DataFrame
,
dask_Series
]
_DaskCollection
=
Union
[
dask_Array
,
dask_DataFrame
,
dask_Series
]
_DaskMatrixLike
=
Union
[
dask_Array
,
dask_DataFrame
]
_DaskMatrixLike
=
Union
[
dask_Array
,
dask_DataFrame
]
...
...
python-package/lightgbm/sklearn.py
View file @
0c5f46f8
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
import
copy
import
copy
from
inspect
import
signature
from
inspect
import
signature
from
pathlib
import
Path
from
pathlib
import
Path
from
typing
import
Any
,
Callable
,
Dict
,
Iterable
,
List
,
Optional
,
Tuple
,
Union
from
typing
import
Any
,
Callable
,
Dict
,
List
,
Optional
,
Tuple
,
Union
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