Created
March 4, 2022 10:19
-
-
Save Paulescu/876e40b8216b5a0ed2b174f5949cdd10 to your computer and use it in GitHub Desktop.
This file contains 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
from src.optimize_hyperparameters import objective | |
# we define a lambda function because study.optimize() | |
# expects the objective function to have only 1 input | |
# (trial), while our objective function hast 2 extra | |
# inputs I defined to add flexibility to the script | |
func = lambda trial: objective(trial, | |
force_linear_model=False, | |
n_episodes_to_train=200) | |
study.optimize(func, n_trials=100) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment