@domain_constructor(loss_target=0)
def q1_lognormal():
 return {'loss': scope.min((0.1 * ((hp.lognormal('x', 0, 2) - 10) ** 2)), 10), 'status': base.STATUS_OK}

@ domain_constructor ( loss_target = 0 ) def q1_lognormal ( ) : return { 'loss' : scope . min ( ( 0.1 * ( ( hp . lognormal ( 'x' , 0 , 2 ) - 10 ) ** 2 ) ) , 10 ) , 'status' : base . STATUS_OK }
about the simplest problem you could ask for: optimize a one-variable quadratic function .