Skip to content

Commit

Permalink
Merge pull request #4983 from semiexp/suppress-experimental-metric_names
Browse files Browse the repository at this point in the history
Remove experimental_func from metric_names property
  • Loading branch information
c-bata committed Sep 30, 2023
2 parents 13a9d5f + 2212274 commit 0f3d2f8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion optuna/study/study.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,6 @@ def system_attrs(self) -> dict[str, Any]:
return copy.deepcopy(self._storage.get_study_system_attrs(self._study_id))

@property
@experimental_func("3.4.0")
def metric_names(self) -> list[str] | None:
"""Return metric names.
Expand Down
6 changes: 0 additions & 6 deletions tests/study_tests/test_study.py
Original file line number Diff line number Diff line change
Expand Up @@ -1610,9 +1610,3 @@ def test_get_metric_names() -> None:
assert study.metric_names == ["v0"]
study.set_metric_names(["v1"])
assert study.metric_names == ["v1"]


def test_get_metric_names_experimental_warning() -> None:
study = create_study()
with pytest.warns(ExperimentalWarning):
study.metric_names

0 comments on commit 0f3d2f8

Please sign in to comment.