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
18d57934
Unverified
Commit
18d57934
authored
Feb 09, 2021
by
James Lamb
Committed by
GitHub
Feb 10, 2021
Browse files
[dask] test that Dask automatically treats 'category' columns as categorical features (#3932)
parent
06ed4337
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
30 deletions
+0
-30
tests/python_package_test/test_dask.py
tests/python_package_test/test_dask.py
+0
-30
No files found.
tests/python_package_test/test_dask.py
View file @
18d57934
...
...
@@ -210,11 +210,6 @@ def test_classifier(output, centers, client, listen_port):
"num_leaves"
:
10
}
if
output
==
'dataframe-with-categorical'
:
params
[
"categorical_feature"
]
=
[
i
for
i
,
col
in
enumerate
(
dX
.
columns
)
if
col
.
startswith
(
'cat_'
)
]
dask_classifier
=
lgb
.
DaskLGBMClassifier
(
client
=
client
,
time_out
=
5
,
...
...
@@ -283,11 +278,6 @@ def test_classifier_pred_contrib(output, centers, client, listen_port):
"num_leaves"
:
10
}
if
output
==
'dataframe-with-categorical'
:
params
[
"categorical_feature"
]
=
[
i
for
i
,
col
in
enumerate
(
dX
.
columns
)
if
col
.
startswith
(
'cat_'
)
]
dask_classifier
=
lgb
.
DaskLGBMClassifier
(
client
=
client
,
time_out
=
5
,
...
...
@@ -379,11 +369,6 @@ def test_regressor(output, client, listen_port):
"num_leaves"
:
10
}
if
output
==
'dataframe-with-categorical'
:
params
[
"categorical_feature"
]
=
[
i
for
i
,
col
in
enumerate
(
dX
.
columns
)
if
col
.
startswith
(
'cat_'
)
]
dask_regressor
=
lgb
.
DaskLGBMRegressor
(
client
=
client
,
time_out
=
5
,
...
...
@@ -460,11 +445,6 @@ def test_regressor_pred_contrib(output, client, listen_port):
"num_leaves"
:
10
}
if
output
==
'dataframe-with-categorical'
:
params
[
"categorical_feature"
]
=
[
i
for
i
,
col
in
enumerate
(
dX
.
columns
)
if
col
.
startswith
(
'cat_'
)
]
dask_regressor
=
lgb
.
DaskLGBMRegressor
(
client
=
client
,
time_out
=
5
,
...
...
@@ -519,11 +499,6 @@ def test_regressor_quantile(output, client, listen_port, alpha):
"num_leaves"
:
10
}
if
output
==
'dataframe-with-categorical'
:
params
[
"categorical_feature"
]
=
[
i
for
i
,
col
in
enumerate
(
dX
.
columns
)
if
col
.
startswith
(
'cat_'
)
]
dask_regressor
=
lgb
.
DaskLGBMRegressor
(
client
=
client
,
local_listen_port
=
listen_port
,
...
...
@@ -593,11 +568,6 @@ def test_ranker(output, client, listen_port, group):
"min_child_samples"
:
1
}
if
output
==
'dataframe-with-categorical'
:
params
[
"categorical_feature"
]
=
[
i
for
i
,
col
in
enumerate
(
dX
.
columns
)
if
col
.
startswith
(
'cat_'
)
]
dask_ranker
=
lgb
.
DaskLGBMRanker
(
client
=
client
,
time_out
=
5
,
...
...
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