Skip to content

Commit

Permalink
[python] remove "auto" value of ylabel argument of plot_metric()
Browse files Browse the repository at this point in the history
…function (#4818)
  • Loading branch information
StrikerRUS authored Nov 26, 2021
1 parent 701e874 commit 953915f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions python-package/lightgbm/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,6 @@ def plot_metric(
ylim = (min_result - range_result * 0.2, max_result + range_result * 0.2)
ax.set_ylim(ylim)

if ylabel == 'auto':
_log_warning("'auto' value of 'ylabel' argument is deprecated and will be removed in a future release of LightGBM. "
"Use '@metric@' placeholder instead.")
ylabel = '@metric@'

if title is not None:
ax.set_title(title)
if xlabel is not None:
Expand Down

0 comments on commit 953915f

Please sign in to comment.