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
e9ea85bd
Unverified
Commit
e9ea85bd
authored
Feb 15, 2021
by
Zhuyi Xue
Committed by
GitHub
Feb 15, 2021
Browse files
[ci][python] apply isort to python-package/lightgbm/plotting.py #3958 (#3972)
parent
cdfe97f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python-package/lightgbm/plotting.py
python-package/lightgbm/plotting.py
+2
-2
No files found.
python-package/lightgbm/plotting.py
View file @
e9ea85bd
...
...
@@ -6,7 +6,7 @@ from io import BytesIO
import
numpy
as
np
from
.basic
import
Booster
,
_log_warning
from
.compat
import
MATPLOTLIB
_INSTALLED
,
GRAPHVIZ
_INSTALLED
from
.compat
import
GRAPHVIZ
_INSTALLED
,
MATPLOTLIB
_INSTALLED
from
.sklearn
import
LGBMModel
...
...
@@ -599,8 +599,8 @@ def plot_tree(booster, ax=None, tree_index=0, figsize=None, dpi=None,
The plot with single tree.
"""
if
MATPLOTLIB_INSTALLED
:
import
matplotlib.pyplot
as
plt
import
matplotlib.image
as
image
import
matplotlib.pyplot
as
plt
else
:
raise
ImportError
(
'You must install matplotlib to plot tree.'
)
...
...
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