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
7f9959fe
Unverified
Commit
7f9959fe
authored
Jul 07, 2021
by
Nikita Titov
Committed by
GitHub
Jul 07, 2021
Browse files
[tests] clarify RuntimeError in distributed tests(#4452)
parent
90342e92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/distributed/_test_distributed.py
tests/distributed/_test_distributed.py
+1
-1
No files found.
tests/distributed/_test_distributed.py
View file @
7f9959fe
...
...
@@ -148,7 +148,7 @@ class DistributedMockup:
cmd
=
[
self
.
executable
,
f
'config=
{
config_path
}
'
]
result
=
subprocess
.
run
(
cmd
)
if
result
.
returncode
!=
0
:
raise
RuntimeError
raise
RuntimeError
(
'Error in prediction'
)
y_pred
=
np
.
loadtxt
(
str
(
TESTS_DIR
/
'predictions.txt'
))
return
y_pred
...
...
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