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
db3915c2
Unverified
Commit
db3915c2
authored
Jun 27, 2021
by
James Lamb
Committed by
GitHub
Jun 27, 2021
Browse files
[tests][dask] add missing compute() in Dask test (#4412)
parent
aacb4c8f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/python_package_test/test_dask.py
tests/python_package_test/test_dask.py
+1
-1
No files found.
tests/python_package_test/test_dask.py
View file @
db3915c2
...
@@ -280,7 +280,7 @@ def test_classifier(output, task, boosting_type, tree_learner, cluster):
...
@@ -280,7 +280,7 @@ def test_classifier(output, task, boosting_type, tree_learner, cluster):
pred_early_stop_margin
=
1.0
,
pred_early_stop_margin
=
1.0
,
pred_early_stop_freq
=
2
,
pred_early_stop_freq
=
2
,
raw_score
=
True
raw_score
=
True
)
)
.
compute
()
p1_proba
=
dask_classifier
.
predict_proba
(
dX
).
compute
()
p1_proba
=
dask_classifier
.
predict_proba
(
dX
).
compute
()
p1_pred_leaf
=
dask_classifier
.
predict
(
dX
,
pred_leaf
=
True
)
p1_pred_leaf
=
dask_classifier
.
predict
(
dX
,
pred_leaf
=
True
)
p1_local
=
dask_classifier
.
to_local
().
predict
(
X
)
p1_local
=
dask_classifier
.
to_local
().
predict
(
X
)
...
...
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