From ce4f45538b8a08d143cfebe6e139c9022bc67bc3 Mon Sep 17 00:00:00 2001 From: Naoto Mizuno Date: Fri, 6 Oct 2023 14:17:21 +0900 Subject: [PATCH 1/2] Add optional-dependencies for preferential optimization --- docs/tutorials/preferential-optimization.rst | 2 +- pyproject.toml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/tutorials/preferential-optimization.rst b/docs/tutorials/preferential-optimization.rst index 4d2644ea9..a192e883c 100644 --- a/docs/tutorials/preferential-optimization.rst +++ b/docs/tutorials/preferential-optimization.rst @@ -27,7 +27,7 @@ First, ensure the necessary packages are installed by executing the following co .. code-block:: console - $ pip install "optuna>=3.3.0" "optuna-dashboard>=0.13.0b1" pillow botorch + $ pip install "optuna>=3.3.0" "optuna-dashboard[preferential]>=0.13.0b1" pillow Next, execute the Python script, copied from `generator.py`_. diff --git a/pyproject.toml b/pyproject.toml index 4eff6f1fe..050a624ab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,6 +54,9 @@ optional = [ "botorch", ] +preferential = [ + "botorch>=0.8.1", +] [project.scripts] optuna-dashboard = "optuna_dashboard._cli:main" From 4a683090ff9780a8af3b946fb773e414dfbf4243 Mon Sep 17 00:00:00 2001 From: Naoto Mizuno Date: Fri, 6 Oct 2023 15:09:19 +0900 Subject: [PATCH 2/2] Add version constraint for BoTorch --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 050a624ab..fd1dcdcbc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,7 @@ test = [ optional = [ "streamlit", "boto3", - "botorch", + "botorch>=0.8.1", ] preferential = [