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
e35ed5f6
Unverified
Commit
e35ed5f6
authored
May 20, 2021
by
AngelikaAntsmae
Committed by
GitHub
May 20, 2021
Browse files
[python-package] Improve Graphviz import error message (fixes #4299) (#4302)
parent
c34b7ffd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python-package/lightgbm/plotting.py
python-package/lightgbm/plotting.py
+1
-1
No files found.
python-package/lightgbm/plotting.py
View file @
e35ed5f6
...
...
@@ -379,7 +379,7 @@ def _to_graphviz(tree_info, show_info, feature_names, precision=3,
if
GRAPHVIZ_INSTALLED
:
from
graphviz
import
Digraph
else
:
raise
ImportError
(
'You must install graphviz to plot tree.'
)
raise
ImportError
(
'You must install graphviz
and restart your session
to plot tree.'
)
def
add
(
root
,
total_count
,
parent
=
None
,
decision
=
None
):
"""Recursively add node or edge."""
...
...
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