@domain_constructor()
def coin_flip():
    return {'loss': hp.choice('flip', [0.0, 1.0]), 'status': base.STATUS_OK}
Possibly the simplest possible Bandit implementation
dataset/ETHPy150Open hyperopt/hyperopt/hyperopt/tests/test_domains.py/coin_flip