@domain_constructor(loss_target=(-2))
def distractor():
 x = hp.uniform('x', (-15), 15)
 f1 = old_div(1.0, (1.0 + scope.exp((- x))))
 f2 = (2 * scope.exp((- ((x + 10) ** 2))))
 return {'loss': ((- f1) - f2), 'status': base.STATUS_OK}

@ domain_constructor ( loss_target = ( - 2 ) ) def distractor ( ) : x = hp . uniform ( 'x' , ( - 15 ) , 15 ) f1 = old_div ( 1.0 , ( 1.0 + scope . exp ( ( - x ) ) ) ) f2 = ( 2 * scope . exp ( ( - ( ( x + 10 ) ** 2 ) ) ) ) return { 'loss' : ( ( - f1 ) - f2 ) , 'status' : base . STATUS_OK }
this is a nasty function: it has a max in a spike near -10 .