Skip to content

Can optuna dashboard load the study persisted in .pkl file? #813

Answered by c-bata
ttzhu813 asked this question in Q&A
Discussion options

You must be logged in to vote

@ttzhu813 Could you try the following code?

import pickle
import optuna
from optuna_dashboard import run_server

pickle_objects = ["foo.pkl", "bar.pkl"]

storage = optuna.storages.InMemoryStorage()
for p in pickle_objects:
    study = pickle.loads(p)
    optuna.copy_study(
        from_study_name=study.study_name,
        from_storage=study.storage,
        to_storage=storage,
    )

run_server(storage)

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ttzhu813
Comment options

@ttzhu813
Comment options

@c-bata
Comment options

Answer selected by ttzhu813
@ttzhu813
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants