From 585dbf3c01b40fecaf1a9bfb04caab55ca1fe7a3 Mon Sep 17 00:00:00 2001 From: c-bata Date: Fri, 29 Sep 2023 11:15:21 +0900 Subject: [PATCH] Fix docstring for Boto3ArtifactStore --- optuna/artifacts/_boto3.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/optuna/artifacts/_boto3.py b/optuna/artifacts/_boto3.py index 42a7d639b3..bc09184db4 100644 --- a/optuna/artifacts/_boto3.py +++ b/optuna/artifacts/_boto3.py @@ -40,17 +40,17 @@ class Boto3ArtifactStore: .. code-block:: python import optuna - from optuna.artifact import upload_artifact - from optuna.artifact.boto3 import Boto3ArtifactStore + from optuna.artifacts import upload_artifact + from optuna.artifacts import Boto3ArtifactStore - artifact_backend = Boto3ArtifactStore("my-bucket") + artifact_store = Boto3ArtifactStore("my-bucket") def objective(trial: optuna.Trial) -> float: ... = trial.suggest_float("x", -10, 10) file_path = generate_example(...) - upload_artifact(trial, file_path, artifact_backend) + upload_artifact(trial, file_path, artifact_store) return ... """