Hyper parameter Optimization¶
Registered HPO¶
Module contents¶
-
class
olympus.hpo.HPOptimizer(name=None, *, hpo=None, **kwargs)[source]¶ Bases:
objectOlympus standardized HPO interface
Examples
def add(a, b): return a + b hpo = HPOptimizer('hyperband', space={ 'a': 'uniform(0, 1)', 'b': 'uniform(0, 1)' }) while not hpo.is_done(): for args in hpo: # try a new configuration result = add(**args) # forward the result to the optimizer hpo.observe(args, result) hpo.result() (OrderedDict([('a', 0.02021839744032572), ('b', 0.05433798833925363), ('uid', 'b6b3c96296beaad9'), ('epoch', 8)]), 0.07455638577957935
Attributes: - trials
Methods
ctor_call info insert_manual_sample is_done load_state_dict observe remaining result state_dict suggest -
trials¶