Skip to content

Instantly share code, notes, and snippets.

@himkt
Last active June 13, 2020 00:29
Show Gist options
  • Select an option

  • Save himkt/6f10d5d635fe3d2870613286554f36c3 to your computer and use it in GitHub Desktop.

Select an option

Save himkt/6f10d5d635fe3d2870613286554f36c3 to your computer and use it in GitHub Desktop.
study = optuna.create_study(direction="maximize")
study.optimize(
objective,
n_jobs=1, # number of processes in parallel execution
n_trials=30, # number of trials to train a model
)
optuna.integration.allennlp.dump_best_config(
"./config/imdb_optuna.jsonnet",
"best.imdb1.json",
study # study created at L1 and optimized in L2
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment