Last active
June 13, 2020 00:29
-
-
Save himkt/6f10d5d635fe3d2870613286554f36c3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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