示例#1
0
 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))
示例#2
0
def hp_loguniform(label, *args, **kwargs):
    if not isinstance(label, basestring):
        raise TypeError("require string label")
    return scope.float(scope.hyperopt_param(label, scope.loguniform(*args, **kwargs)))
示例#3
0
def hp_loguniform(label, *args, **kwargs):
    return scope.float(
            scope.hyperopt_param(label,
                scope.loguniform(*args, **kwargs)))