Skip to content

Commit

Permalink
Merge pull request optuna#4909 from optuna/keisuke-umezawa-patch-1
Browse files Browse the repository at this point in the history
Fix typo in _filesystem.py
  • Loading branch information
c-bata authored Sep 11, 2023
2 parents a0fdce8 + b8cfc9e commit 5f6b136
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions optuna/artifacts/_filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

@experimental_class("3.3.0")
class FileSystemArtifactStore:
"""An artifact backend for file systems.
"""An artifact store for file systems.
Args:
base_path:
Expand All @@ -33,13 +33,13 @@ class FileSystemArtifactStore:
base_path = "./artifacts"
os.makedirs(base_path, exist_ok=True)
artifact_backend = FileSystemArtifactStore(base_path=base_path)
artifact_store = FileSystemArtifactStore(base_path=base_path)
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 5f6b136

Please sign in to comment.