@domain_constructor()
def coin_flip():
 return {'loss': hp.choice('flip', [0.0, 1.0]), 'status': base.STATUS_OK}

@ domain_constructor ( ) def coin_flip ( ) : return { 'loss' : hp . choice ( 'flip' , [ 0.0 , 1.0 ] ) , 'status' : base . STATUS_OK }
possibly the simplest possible bandit implementation .