File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9191 "type" : "legacy" ,
9292 "database" : {"type" : "pickleddb" , "host" : "./current_db.pkl" },
9393 },
94- algorithms = {"tpe" : {"seed" : seed }},
94+ algorithms = {"tpe" : {"seed" : seed , "n_initial_points" : 10 }},
9595 max_trials = 20 ,
9696 )
9797 for seed in range (n_seeds )
113113 "type" : "legacy" ,
114114 "database" : {"type" : "pickleddb" , "host" : "./current_db.pkl" },
115115 },
116- algorithms = {"tpe" : {"seed" : seed }},
116+ # NOTE: This n_initial_points is changed slightly, since it also counts the trials from
117+ # the previous experiment.
118+ # NOTE: you don't *have* to do this, it also works without it. This is just to make the
119+ # comparison a bit fairer.
120+ # Both algorithms do random search from trials 0-10, and then optimize from 10-20.
121+ algorithms = {"tpe" : {"seed" : seed , "n_initial_points" : 20 }},
117122 max_trials = 20 ,
118123 knowledge_base = KnowledgeBase (storage = previous_experiment .storage ),
119124 # knowledge_base={"KnowledgeBase": {"storage": previous_experiment_storage}},
You can’t perform that action at this time.
0 commit comments