optuna / optuna-examples

Examples for https://github.com/optuna/optuna
MIT License
634 stars 172 forks source link

Trial Fail #196

Closed BaiMeiyingxue closed 1 year ago

BaiMeiyingxue commented 1 year ago

Hi, I'm a beginner of optuna, and here I encounter the error image the code is like below

    optuna.storages.RDBStorage("sqlite:///optuna1.db", skip_table_creation=False)
    storage_name = "sqlite:///optuna1.db"
    study = optuna.create_study(
        pruner=optuna.pruners.MedianPruner(n_warmup_steps=3), direction="maximize",
        study_name="fashion_mnist_torch", storage=storage_name,load_if_exists=True
    )
    study.optimize(objective, n_trials=20, timeout=1200)
    pruned_trials = study.get_trials(deepcopy=False, states=[TrialState.PRUNED])
    complete_trials = study.get_trials(deepcopy=False, states=[TrialState.COMPLETE])

Could you tell me why the trial is failed? Thank you very much!

nzw0301 commented 1 year ago

Could you use https://github.com/optuna/optuna/discussions to ask a question? In addition, when you ask a question please kindly share the minimal reproducible code with us/