Skip to content

Commit

Permalink
Fix docstring for Boto3ArtifactStore
Browse files Browse the repository at this point in the history
  • Loading branch information
c-bata committed Sep 29, 2023
1 parent 83f3cbf commit 585dbf3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions optuna/artifacts/_boto3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ...
"""

Expand Down

0 comments on commit 585dbf3

Please sign in to comment.