From d79f6b6c6f01364c3d0f3ca580df2a9655ae7a1c Mon Sep 17 00:00:00 2001 From: Contramundum Date: Thu, 5 Oct 2023 16:25:40 +0900 Subject: [PATCH 1/3] Add experimental warnings on doc --- optuna_dashboard/preferential/_study.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/optuna_dashboard/preferential/_study.py b/optuna_dashboard/preferential/_study.py index 6e093683..651dac98 100644 --- a/optuna_dashboard/preferential/_study.py +++ b/optuna_dashboard/preferential/_study.py @@ -37,6 +37,10 @@ class PreferentialStudy: To create and load a study, please refer to the documentation of :func:`~optuna_dashboard.preferential.create_study` and :func:`~optuna_dashboard.preferential.load_study` respectively. + + .. note:: + Preferential optimization is an experimental feature (introduced in v3.4.0). + The interface may change in newer versions without prior notice. """ def __init__(self, study: optuna.Study) -> None: @@ -359,6 +363,10 @@ def create_study( Returns: A :class:`~optuna_dashboard.preferential.PreferentialStudy` object. + + .. note:: + Preferential optimization is an experimental feature (introduced in v3.4.0). + The interface may change in newer versions without prior notice. """ try: study = optuna.create_study( @@ -441,6 +449,10 @@ def load_study( Returns: A :class:`~optuna_dashboard.preferential.PreferentialStudy` object. + + .. note:: + Preferential optimization is an experimental feature (introduced in v3.4.0). + The interface may change in newer versions without prior notice. """ study = optuna.load_study( study_name=study_name, storage=storage, sampler=sampler or RandomSampler() From 1aef43cd8a7e66cc015e08f75db5ba7c462f0b7b Mon Sep 17 00:00:00 2001 From: Contramundum Date: Thu, 5 Oct 2023 16:28:05 +0900 Subject: [PATCH 2/3] Change version to that of optuna-dashboard --- optuna_dashboard/preferential/_study.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/optuna_dashboard/preferential/_study.py b/optuna_dashboard/preferential/_study.py index 651dac98..d85c0e41 100644 --- a/optuna_dashboard/preferential/_study.py +++ b/optuna_dashboard/preferential/_study.py @@ -39,7 +39,7 @@ class PreferentialStudy: :func:`~optuna_dashboard.preferential.load_study` respectively. .. note:: - Preferential optimization is an experimental feature (introduced in v3.4.0). + Preferential optimization is an experimental feature (introduced in v0.13.0). The interface may change in newer versions without prior notice. """ @@ -365,7 +365,7 @@ def create_study( A :class:`~optuna_dashboard.preferential.PreferentialStudy` object. .. note:: - Preferential optimization is an experimental feature (introduced in v3.4.0). + Preferential optimization is an experimental feature (introduced in v0.13.0). The interface may change in newer versions without prior notice. """ try: @@ -451,7 +451,7 @@ def load_study( A :class:`~optuna_dashboard.preferential.PreferentialStudy` object. .. note:: - Preferential optimization is an experimental feature (introduced in v3.4.0). + Preferential optimization is an experimental feature (introduced in v0.13.0). The interface may change in newer versions without prior notice. """ study = optuna.load_study( From b8ef10d1f1eef410e31af998b92fe79af2497130 Mon Sep 17 00:00:00 2001 From: Contramundum Date: Thu, 5 Oct 2023 16:31:29 +0900 Subject: [PATCH 3/3] Fix linter --- optuna_dashboard/preferential/_study.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/optuna_dashboard/preferential/_study.py b/optuna_dashboard/preferential/_study.py index d85c0e41..d715b97b 100644 --- a/optuna_dashboard/preferential/_study.py +++ b/optuna_dashboard/preferential/_study.py @@ -39,7 +39,7 @@ class PreferentialStudy: :func:`~optuna_dashboard.preferential.load_study` respectively. .. note:: - Preferential optimization is an experimental feature (introduced in v0.13.0). + Preferential optimization is an experimental feature (introduced in v0.13.0). The interface may change in newer versions without prior notice. """ @@ -365,7 +365,7 @@ def create_study( A :class:`~optuna_dashboard.preferential.PreferentialStudy` object. .. note:: - Preferential optimization is an experimental feature (introduced in v0.13.0). + Preferential optimization is an experimental feature (introduced in v0.13.0). The interface may change in newer versions without prior notice. """ try: @@ -449,9 +449,9 @@ def load_study( Returns: A :class:`~optuna_dashboard.preferential.PreferentialStudy` object. - + .. note:: - Preferential optimization is an experimental feature (introduced in v0.13.0). + Preferential optimization is an experimental feature (introduced in v0.13.0). The interface may change in newer versions without prior notice. """ study = optuna.load_study(