def __init__(self): d = dict( # -- alphabetical order lu = scope.loguniform(-2, 2), qlu = scope.qloguniform(np.log(0.01), np.log(20), 2), qu = scope.quniform(-4.999, 5, 1), u = scope.uniform(0, 10), ) base.Bandit.__init__(self, as_apply(d))
def hp_qloguniform(label, *args, **kwargs): if not isinstance(label, basestring): raise TypeError("require string label") return scope.float(scope.hyperopt_param(label, scope.qloguniform(*args, **kwargs)))
def hp_qloguniform(label, *args, **kwargs): return scope.float( scope.hyperopt_param(label, scope.qloguniform(*args, **kwargs)))
def hp_qloguniform(label, *args, **kwargs): if not isinstance(label, basestring): raise TypeError('require string label') return scope.float( scope.hyperopt_param(label, scope.qloguniform(*args, **kwargs)))