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
a630da3e
Unverified
Commit
a630da3e
authored
Feb 15, 2021
by
Zhuyi Xue
Committed by
GitHub
Feb 15, 2021
Browse files
[ci][python] apply isort to examples/python-guide/sklearn_example.py #3958 (#3965)
parent
3b547001
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
examples/python-guide/sklearn_example.py
examples/python-guide/sklearn_example.py
+2
-2
No files found.
examples/python-guide/sklearn_example.py
View file @
a630da3e
# coding: utf-8
import
numpy
as
np
import
pandas
as
pd
import
lightgbm
as
lgb
from
sklearn.metrics
import
mean_squared_error
from
sklearn.model_selection
import
GridSearchCV
import
lightgbm
as
lgb
print
(
'Loading data...'
)
# load or create your dataset
df_train
=
pd
.
read_csv
(
'../regression/regression.train'
,
header
=
None
,
sep
=
'
\t
'
)
...
...
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