@domain_constructor(loss_target=0)
def quadratic1():
 return {'loss': ((hp.uniform('x', (-5), 5) - 3) ** 2), 'status': base.STATUS_OK}

@ domain_constructor ( loss_target = 0 ) def quadratic1 ( ) : return { 'loss' : ( ( hp . uniform ( 'x' , ( - 5 ) , 5 ) - 3 ) ** 2 ) , 'status' : base . STATUS_OK }
about the simplest problem you could ask for: optimize a one-variable quadratic function .