Skip to content

Commit

Permalink
Remove experimental_func from metric_names property
Browse files Browse the repository at this point in the history
  • Loading branch information
semiexp committed Sep 30, 2023
1 parent 9f0be55 commit 2212274
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 2212274

Please sign in to comment.