From 2212274595b66316602c261abe92c95563e9085f Mon Sep 17 00:00:00 2001 From: semiexp Date: Sat, 30 Sep 2023 17:23:00 +0900 Subject: [PATCH] Remove experimental_func from metric_names property --- optuna/study/study.py | 1 - tests/study_tests/test_study.py | 6 ------ 2 files changed, 7 deletions(-) diff --git a/optuna/study/study.py b/optuna/study/study.py index eae8fd0993..bee0ec44d8 100644 --- a/optuna/study/study.py +++ b/optuna/study/study.py @@ -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. diff --git a/tests/study_tests/test_study.py b/tests/study_tests/test_study.py index 51411e54d8..6477073e4b 100644 --- a/tests/study_tests/test_study.py +++ b/tests/study_tests/test_study.py @@ -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