Skip to content

Commit d5d3eef

Browse files
authored
Merge pull request optuna#6011 from not522/remove-matplotlib-contour-warning
Remove warning messages for Matplotlib-based `plot_contour` and `plot_rank`
2 parents 3fad76e + 755f2ec commit d5d3eef

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

optuna/visualization/matplotlib/_contour.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
from optuna._experimental import experimental_func
99
from optuna._imports import try_import
10-
from optuna.logging import get_logger
1110
from optuna.study import Study
1211
from optuna.trial import FrozenTrial
1312
from optuna.visualization._contour import _AxisInfo
@@ -27,8 +26,6 @@
2726
from optuna.visualization.matplotlib._matplotlib_imports import ContourSet
2827
from optuna.visualization.matplotlib._matplotlib_imports import plt
2928

30-
_logger = get_logger(__name__)
31-
3229

3330
CONTOUR_POINT_NUM = 100
3431

@@ -48,11 +45,6 @@ def plot_contour(
4845
.. seealso::
4946
Please refer to :func:`optuna.visualization.plot_contour` for an example.
5047
51-
Warnings:
52-
Output figures of this Matplotlib-based
53-
:func:`~optuna.visualization.matplotlib.plot_contour` function would be different from
54-
those of the Plotly-based :func:`~optuna.visualization.plot_contour`.
55-
5648
Args:
5749
study:
5850
A :class:`~optuna.study.Study` object whose trials are plotted for their target values.
@@ -76,10 +68,6 @@ def plot_contour(
7668
"""
7769

7870
_imports.check()
79-
_logger.warning(
80-
"Output figures of this Matplotlib-based `plot_contour` function would be different from "
81-
"those of the Plotly-based `plot_contour`."
82-
)
8371
info = _get_contour_info(study, params, target, target_name)
8472
return _get_contour_plot(info)
8573

optuna/visualization/matplotlib/_rank.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from collections.abc import Callable
44

55
from optuna._experimental import experimental_func
6-
from optuna.logging import get_logger
76
from optuna.study import Study
87
from optuna.trial import FrozenTrial
98
from optuna.visualization._rank import _get_rank_info
@@ -19,9 +18,6 @@
1918
from optuna.visualization.matplotlib._matplotlib_imports import plt
2019

2120

22-
_logger = get_logger(__name__)
23-
24-
2521
@experimental_func("3.2.0")
2622
def plot_rank(
2723
study: Study,
@@ -37,11 +33,6 @@ def plot_rank(
3733
.. seealso::
3834
Please refer to :func:`optuna.visualization.plot_rank` for an example.
3935
40-
Warnings:
41-
Output figures of this Matplotlib-based
42-
:func:`~optuna.visualization.matplotlib.plot_rank` function would be different from
43-
those of the Plotly-based :func:`~optuna.visualization.plot_rank`.
44-
4536
Args:
4637
study:
4738
A :class:`~optuna.study.Study` object whose trials are plotted for their target values.
@@ -61,10 +52,6 @@ def plot_rank(
6152
"""
6253

6354
_imports.check()
64-
_logger.warning(
65-
"Output figures of this Matplotlib-based `plot_rank` function would be different from "
66-
"those of the Plotly-based `plot_rank`."
67-
)
6855
info = _get_rank_info(study, params, target, target_name)
6956
return _get_rank_plot(info)
7057

0 commit comments

Comments
 (0)